Closed Nigcra closed 1 year ago
Hey ! Hardcoded because it's the loopback address, it must work outside
Do you use it in a VM like VirtualBox ? Or WSL ? Or something else ?
It's really for dev purpose, not production
Its running in a VMware ESXi homelab. It seems to work with loopback, but when I try to access the client, it stops at 20% and I see the following message in devlog:
Failed to load resource: net::ERR_CONNECTION_REFUSED http://127.0.0.1:8080/gamedata/ExternalTexts.json
The "remote" address of the VM I opened is: http://192.168.1.160:1080/?sso=123
Oooh that's normal !
You need to extract every assets :)
Run the following command just extract-nitro-assets
Thought I had done that correctly so far
It works now ?
You a have a lot of errors too...
No, the error pattern is the same. I had already run the command as described in the readme before I even opened the browser. It is a fresh VM, fresh Docker.io, Compose and Just.
Why it brings these errors when extracting the SWF I don't know, I did nothing more than check out Git head and proceed according to readme. In between it also looks like many SWF are working.
That's strange... do you have in the bundled folder the ExternalText.json ? 🤔
It looks like I don't have the file 😶
I'm sorry, really don't know :/ Check in configuration of the nitro-extractor and debug it if you can
hm, I really don't know how to debug there. I started in container yarn in debug mode, but that doesn't get me anywhere either.
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/EffectMapConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/EffectMapConverter.ts compiled in 14 ms
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FigureMapConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FigureMapConverter.ts compiled in 10 ms
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FurnitureDataConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FurnitureDataConverter.ts compiled in 14 ms
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/ExternalTextsConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/ExternalTextsConverter.ts compiled in 10 ms
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FigureDataConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/FigureDataConverter.ts compiled in 9 ms
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/ProductDataConverter.ts added to watcher
[DEBUG] 10:14:25 /app/nitro-converter/src/converters/ProductDataConverter.ts compiled in 13 ms
✔ FurnitureData: Finished in 2031ms
✔ FigureData: Finished in 805ms
✔ ProductData: Finished in 95ms
✔ ExternalTexts: Finished in 137ms
✔ EffectMap: Finished in 9ms
✔ FigureMap: Finished in 199ms
⠙ Converting: md_limukaappi_cmp (1 / 7750)
Invalid SWF: md_limukaappi_cmp
⠹ Converting: floortile (55 / 7750)
Invalid SWF: floortile
⠸ Converting: soft_jaggara_norja (175 / 7750)
Invalid SWF: soft_jaggara_norja
⠼ Converting: ticket (213 / 7750)
Invalid SWF: ticket
⠴ Converting: horse_hairdye_04_horsesho (2014 / 7750)
Invalid SWF: horse_hairdye_04_horsesho
⠙ Converting: america_r17_skunk (5268 / 7750)^C
b71c6d592cb4:/app/nitro-converter#
Is there any way to download the unzipped/finished Nitro assets somewhere or something?
Okay, beside the converter problem, the ExternalTexts.json is there:
@habbo:~/holo5/nitro/nitro-converter/assets/gamedata# ls
EffectMap.json ExternalTexts.json FigureData.json FigureMap.json FurnitureData.json ProductData.json
But the browser says it cannot be loaded: Which brings me back to the first post - I'm running it on a VM so 127.0.0.1 cannot work. Where can I change the URL?
You can't change the URL, only ports ! It's inside the docker-compose, look at 8080
Its weird because some assets are loading with the correct IP - I can see the get requests. Thought there would be some kind of BASE_URI.
I will try on my side to reinstall everything, to check if there are some conf mismatch
You can add me on disc pitt_0
Thanks for your efforts and time!! :)
OK I tried to install everything from scratch though a brand new WSL instance.
And it works ! I can't help you more on that, except if you add me on Discord :)
Good luck. (close this issue if you want)
I fixed it myself by changing the webclient configuration in:
nitro/configuration/nitro-react/public/renderer-config.json
to the current VM IP / DNS name.
{
"socket.url": "ws://192.168.1.153:2096",
"asset.url": "http://192.168.1.153:8080",
"image.library.url": "http://192.168.1.153:8081/c_images/",
"hof.furni.url": "http://192.168.1.153:8081/dcr/hof_furni",
btw: wasn't the camera.com removed in the code? something seems to still be there
NIIIIIIIIIIIIIIIIIIIICE ! Good job, it works ! 🙏🏾
Thank you for the tips !
Yes, camera.com is removed since the last commit.
What to do to connect from other hosts? I found hardcoded '127.0.0.1' in different files but I can't connect even to that localhost because I installed in a VM.