How to set up a retro in 2023 (IIS) (Nitro HTML5) - (Part 3)

Object

?
Nov 10, 2017
434
358
I'm a bit confused because you say to use command prompt and enter the following
Code:
cd C:\inetpub\wwwroot\Cosmic\public\client\html5\nitro-assets && git clone https://git.krews.org/nitro/default-assets.git
but I don't have a html5 folder, only flash so that path doesn't exist. Is there something else which is meant to be installed first?
This is described in part 2
 

Armh

New Member
Jan 26, 2022
4
3
Hi,
Thanks for the effort. I followed the guide, but for some reason, I don't have a hotel client at all. So when I click "to beta cosmic" (texts are default), I get redirected to url [domain]/hotel=beta, but it claims that the Page not found!

Which step did I possibly unnoticably skip? Thanks
 

Object

?
Nov 10, 2017
434
358
Hi,
Thanks for the effort. I followed the guide, but for some reason, I don't have a hotel client at all. So when I click "to beta cosmic" (texts are default), I get redirected to url [domain]/hotel=beta, but it claims that the Page not found!

Which step did I possibly unnoticably skip? Thanks
I would assume you didnt change the nitro path to the specified one, in yoir config.php
 

nplay114

New Member
Jan 25, 2022
8
6
Hello your guide is pretty fun and very useful to follow. I faced a couple of problems which I managed to fix. But it seems that I am stuck on this one. I want to sleep so that is why I am asking for your help. When I load my client, it keeps saying 'getting ready'.
The console tells me that externaltexts.json is not right. But I don't understand why. ( )

Could you help me out with this one?
 
Last edited:

wistfulglen

New Member
Jan 22, 2022
10
7
This is probably the most thorough tutorial I've seen. Do you think you'd ever consider doing one on how to set up a private hotel on your localhost? I'm really new to the retro game, so I'm unsure if the tutorials I have stumbled upon are up to date. Regardless, I think you have a great way of teaching and explaining so it's understandable.
 

Armh

New Member
Jan 26, 2022
4
3
I would assume you didnt change the nitro path to the specified one, in yoir config.php
Hmm,
In the config file nitro_path => /client/html5/nitro-client/dist. But in my files, inside \client\html5\nitro-client\ I dont have a dist folder at all.

E: I forgot to build the yarn..
All fixed, thanks.
 
Last edited:

Object

?
Nov 10, 2017
434
358
This is probably the most thorough tutorial I've seen. Do you think you'd ever consider doing one on how to set up a private hotel on your localhost? I'm really new to the retro game, so I'm unsure if the tutorials I have stumbled upon are up to date. Regardless, I think you have a great way of teaching and explaining so it's understandable.
Thank you very much! it really means a lot :D

I probably won't be making one explaining in depth how to do it locally however it's not so different for what the tutorial explains.

Since you're pretty new I would probably just download the latest version of Xampp as this will give you both the web server and the mysql sever you need.

Once that's done go to C:/xampp/apache/conf/httpd.conf and open the "httpd.conf" scroll down to the:
DocumentRoot "C:/xampp/htdocs" and change it to DocumentRoot "C:/xampp/htdocs/Cosmic/Public"

If you can't find the folder mentioned above, you can also edit it by doing what's done below

You must be registered for see images attach


Then simply follow the tutorial and skip the IIS setup, MYSQL setup and PHP setup as Xampp comes with all of these out of the box - It's also important to note, you can't just copy and paste the command prompt commands i've provided as on xampp your files gotta go into the "C:/xampp/htdocs" folder instead of the "C:/inetpub/wwwroot" folder

Your MYSQL password will also be empty, so when connecting to your database you just leave the password field blank and to access your site just search for "localhost" in your browser once you have started the apache server and mysql server in the xampp control panel

And for the nitro websocket part instead of "wss://" which stand for "Web socket secure" you just use "ws://" which will just be "Web socket"
Post automatically merged:

Hello your guide is pretty fun and very useful to follow. I faced a couple of problems which I managed to fix. But it seems that I am stuck on this one. I want to sleep so that is why I am asking for your help. When I load my client, it keeps saying 'getting ready'.
The console tells me that externaltexts.json is not right. But I don't understand why. ( )

Could you help me out with this one?
You must be registered for see images attach


This is a CORS issue, try changing to just domain.nl in your configuration files
 
Last edited:

Armh

New Member
Jan 26, 2022
4
3
Where's the Cosmic background config file located at?

I can locate the background image location (public\assets\images\web), but I can't manage to find the file that assigns the background.
 

Object

?
Nov 10, 2017
434
358
Where's the Cosmic background config file located at?

I can locate the background image location (public\assets\images\web), but I can't manage to find the file that assigns the background.
Use your dev tools -> right click on the background and inspect element, for future help requests, please head to the help section and post there :)
 

nplay114

New Member
Jan 25, 2022
8
6
And for the nitro websocket part instead of "wss://" which stand for "Web socket secure" you just use "ws://" which will just be "Web socket"
Post automatically merged:


You must be registered for see images attach


This is a CORS issue, try changing to just domain.nl in your configuration files
Hey back again with it. Sorry for asking too much questions. Fixed the CORS thanks to your response. Got a load of other errors with it too. But I am sure that I followed the tut 1:1. When I want to go to the client. It shows me the 'page not found page'. But the console tells me a 404 get error. (screenshot_28)

You must be registered for see images attach


I did some research and it appears that my db settings was on ws, instead of wss. I changed it with the emulator closed. (screenshot_26). Somehow the database gives the ws back. I left it empty, hoping that it would retreave the wss.

You must be registered for see images attach


And when I start the emulator, it gives me some errors and tells me that it is listening on ws. Do you know why and how I can fix that? (screenshot_27)

You must be registered for see images attach



PS: I have included the config pages, in case if you are wondering. Should i do this all over again? Maybe i changes something while the emulator was online?
 

Attachments

  • Screenshot_29.png
    Screenshot_29.png
    309 KB · Views: 28
  • Screenshot_30.png
    Screenshot_30.png
    209.5 KB · Views: 20
  • Screenshot_31.png
    Screenshot_31.png
    345.1 KB · Views: 14
  • Screenshot_32.png
    Screenshot_32.png
    14.2 KB · Views: 16
  • Screenshot_33.png
    Screenshot_33.png
    13.1 KB · Views: 43

Object

?
Nov 10, 2017
434
358
Hey back again with it. Sorry for asking too much questions. Fixed the CORS thanks to your response. Got a load of other errors with it too. But I am sure that I followed the tut 1:1. When I want to go to the client. It shows me the 'page not found page'. But the console tells me a 404 get error. (screenshot_28)

You must be registered for see images attach


I did some research and it appears that my db settings was on ws, instead of wss. I changed it with the emulator closed. (screenshot_26). Somehow the database gives the ws back. I left it empty, hoping that it would retreave the wss.

You must be registered for see images attach


And when I start the emulator, it gives me some errors and tells me that it is listening on ws. Do you know why and how I can fix that? (screenshot_27)

You must be registered for see images attach



PS: I have included the config pages, in case if you are wondering. Should i do this all over again? Maybe i changes something while the emulator was online?
You're not sending your index.html with the nitro url, if you check your error it grabs your sso straight away without index.html in front of it
 

nplay114

New Member
Jan 25, 2022
8
6
You're not sending your index.html with the nitro url, if you check your error it grabs your sso straight away without index.html in front of it
So there is a problem with a redirection? Not the cms right? Could you explain what I need to do
If u want you can add me on discord ~Nplay.#4542 i dont know what to do now tbh
 

DenizPapito

New Member
Jan 27, 2022
3
3
Hey man thx for your tutorial but i have still the issue with the client error, i tried like to replace the renderer and compile it again but i get now this problem.

C:\inetpub\wwwroot\Cosmic\public\client\html5\nitro-client>yarn build-prod
yarn run v1.22.17
error Command "build-prod" not found.
info Visit for documentation about this command.

Edit: put it in the wrong file but still after doing it correct i still cant get to load the hotel.
 
Last edited:

Object

?
Nov 10, 2017
434
358
Hey man thx for your tutorial but i have still the issue with the client error, i tried like to replace the renderer and compile it again but i get now this problem.

C:\inetpub\wwwroot\Cosmic\public\client\html5\nitro-client>yarn build-prod
yarn run v1.22.17
error Command "build-prod" not found.
info Visit for documentation about this command.

Edit: put it in the wrong file but still after doing it correct i still cant get to load the hotel.
what error u receiving?
Post automatically merged:

So there is a problem with a redirection? Not the cms right? Could you explain what I need to do
If u want you can add me on discord ~Nplay.#4542 i dont know what to do now tbh
the issues is u simply doesn't link the index.html
 

nplay114

New Member
Jan 25, 2022
8
6
Thanks for this guide, I did it again and everything worked. Please pay attention in the file where we have to replace the nitro path. It is not line 27 but 28. :p just wanted to let you know i learned from. I am a beginning developer and I think that this is a great oppurnity
 

Object

?
Nov 10, 2017
434
358
Thanks for this guide, I did it again and everything worked. Please pay attention in the file where we have to replace the nitro path. It is not line 27 but 28. :p just wanted to let you know i learned from. I am a beginning developer and I think that this is a great oppurnity
That's awesome. Thanks for letting me know about the correct line! I'm happy that you got your hotel up & running :D
 

Users who are viewing this thread

Top