Nitro Imager doesn't work for me..

LinuxUser

Member
Nov 30, 2021
26
2
Hey DevBest,

A Mod cleared my conversation with @Object and @boz because he want the tutorial for its own.
I did everything in my roleplay like in this tutorial thread -->

I tried it with reverse Proxy like in this tutorial.
It doesn't work - so i tried it with a subdomain.

I did a subfolder in C:/inetpub and put these things inside: (these files were converted out of my .xml and .swf files with nitro converter)
I wrote these inside the web.config file, like @boz told me to do:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule1" enabled="true" stopProcessing="true">
                    <match url="(.*)" negate="false" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

I also changed the links in the nitro-imager:
Code:
"api.host": "localhost",
    "api.port": 8080,
    "asset.url": "C:/inetpub/imager.mydomain.com",
    "gamedata.url": "${asset.url}/gamedata",
    "avatar.save.path": "${asset.url}/saved-figures",
    "avatar.actions.url": "${gamedata.url}/HabboAvatarActions.json",
    "avatar.figuredata.url": "${gamedata.url}/FigureData.json",
    "avatar.figuremap.url": "${gamedata.url}/FigureMap.json",
    "avatar.effectmap.url": "${gamedata.url}/EffectMap.json",
    "avatar.asset.url": "${asset.url}/figure/%libname%.nitro",
    "avatar.asset.effect.url": "${asset.url}/effect/%libname%.nitro",

I added a new site in IIS-Manager:
It has these bindings: (just 80, because everything works with http at the moment)
I enabled the proxy-settings in MAINSERVER (IIS-manager):
In default site (main domain) i added this url-rewrite, like in the tutorial: &

But the avatar is still like this:
And if i try to access the link directly (the exact link from the avatar image of me page) it will show this error:

If anyone has an idea what i did wrong and how to fix this then please tell me.
 
Solution
Hey DevBest,

A Mod cleared my conversation with @Object and @boz because he want the tutorial for its own.
I did everything in my roleplay like in this tutorial thread -->

I tried it with reverse Proxy like in this tutorial.
It doesn't work - so i tried it with a subdomain.

I did a subfolder in C:/inetpub and put these things inside: (these files were converted out of my .xml and .swf files with nitro converter)
I wrote these inside the web.config file, like @boz told me to do:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <rewrite>
            <rules>
                <rule...

boz

don daddy
Mar 23, 2021
206
100
Hey DevBest,

A Mod cleared my conversation with @Object and @boz because he want the tutorial for its own.
I did everything in my roleplay like in this tutorial thread -->

I tried it with reverse Proxy like in this tutorial.
It doesn't work - so i tried it with a subdomain.

I did a subfolder in C:/inetpub and put these things inside: (these files were converted out of my .xml and .swf files with nitro converter)
I wrote these inside the web.config file, like @boz told me to do:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule1" enabled="true" stopProcessing="true">
                    <match url="(.*)" negate="false" />
                    <action type="Rewrite" url="http://localhost:8080/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

I also changed the links in the nitro-imager:
Code:
"api.host": "localhost",
    "api.port": 8080,
    "asset.url": "C:/inetpub/imager.mydomain.com",
    "gamedata.url": "${asset.url}/gamedata",
    "avatar.save.path": "${asset.url}/saved-figures",
    "avatar.actions.url": "${gamedata.url}/HabboAvatarActions.json",
    "avatar.figuredata.url": "${gamedata.url}/FigureData.json",
    "avatar.figuremap.url": "${gamedata.url}/FigureMap.json",
    "avatar.effectmap.url": "${gamedata.url}/EffectMap.json",
    "avatar.asset.url": "${asset.url}/figure/%libname%.nitro",
    "avatar.asset.effect.url": "${asset.url}/effect/%libname%.nitro",

I added a new site in IIS-Manager:
It has these bindings: (just 80, because everything works with http at the moment)
I enabled the proxy-settings in MAINSERVER (IIS-manager):
In default site (main domain) i added this url-rewrite, like in the tutorial: &

But the avatar is still like this:
And if i try to access the link directly (the exact link from the avatar image of me page) it will show this error:

If anyone has an idea what i did wrong and how to fix this then please tell me.
The directory for the sub domain isn’t supposed to have them files in, it’s got to have the nitro-imager ‘dist’ folder contents inside not the nitro converted files, they are for the client.
Post automatically merged:

Make sure the imager server is running also.
 
Solution

LinuxUser

Member
Nov 30, 2021
26
2
The directory for the sub domain isn’t supposed to have them files in, it’s got to have the nitro-imager ‘dist’ folder contents inside not the nitro converted files, they are for the client.
Post automatically merged:

Make sure the imager server is running also.
Ok but one problem: If i do ONLY the content which are in the dist folder of nitro-imager than i cannot start the imager server through the subdomain.
So i need to put the dist folder content in the subdomain folder and start the server through the full nitrp-imager folder on my desktop? So it will load the dist content which is on desktop too and not from the subdomain.
You know what i mean?

Subdomain folder:
Nitro-Imager Folder on Desktop:

Cause if i try to start through the subdomain folder it shows this:

__________________________________
EDIT:

I tried now with the full nitro-imager folder content in subdomain folder.
Started the imager server and reloaded the direct url to the imager.

Now i get this:

Anyone an idea how to fix this ?...

_______________________________
EDIT AGAIN!!!!

I forgot the web.config! NOW IT WORKS!! FINALLY!!!!!

Thank you too @boz !! Your reply with the subdomain and imager into the subdomain fixed my problem!
THANK YOU VERY MUCH :)
 
Last edited:

boz

don daddy
Mar 23, 2021
206
100
Ok but one problem: If i do ONLY the content which are in the dist folder of nitro-imager than i cannot start the imager server through the subdomain.
So i need to put the dist folder content in the subdomain folder and start the server through the full nitrp-imager folder on my desktop? So it will load the dist content which is on desktop too and not from the subdomain.
You know what i mean?

Subdomain folder:
Nitro-Imager Folder on Desktop:

Cause if i try to start through the subdomain folder it shows this:

__________________________________
EDIT:

I tried now with the full nitro-imager folder content in subdomain folder.
Started the imager server and reloaded the direct url to the imager.

Now i get this:

Anyone an idea how to fix this ?...

_______________________________
EDIT AGAIN!!!!

I forgot the web.config! NOW IT WORKS!! FINALLY!!!!!

Thank you too @boz !! Your reply with the subdomain and imager into the subdomain fixed my problem!
THANK YOU VERY MUCH :)
Glad I could help, if you wouldn’t mind marking my answer as the solution.
 

Users who are viewing this thread

Top