Plans to go open source

short notes for those not reading all the forums
User avatar
killme
Full Member
Posts: 113
Joined: Thu Mar 22, 2018 7:54 pm

Re: Plans to go open source

Postby killme » Tue Apr 27, 2021 2:43 am

so what is ip in .sh files?
hills says public ip, and in dev9 is route ip (192.168.x.x)
this made me confuse.
I play outbreak on emu.
I found forward port setting in virtual box option, but dont know how to do.
I found dmz option in router, I need input public ip or router ip?

now all IPs changed to 192.168.0.100, its local ip in my router.
and same IP in dev9 setting, still cant connect, just a blue error screen.

i found an option name Port mapping(forward)
Intranet IP address | Intranet port | External network port | agreement
how to do on the 2 ports?
Image

User avatar
hill73n
Sr. Member
Posts: 252
Joined: Mon May 20, 2019 4:49 am
Location: Australia

Re: Plans to go open source

Postby hill73n » Wed May 05, 2021 11:07 pm

so what is ip in .sh files?
hills says public ip, and in dev9 is route ip (192.168.x.x)
this made me confuse.
I play outbreak on emu.
I found forward port setting in virtual box option, but dont know how to do.
I found dmz option in router, I need input public ip or router ip?

now all IPs changed to 192.168.0.100, its local ip in my router.
and same IP in dev9 setting, still cant connect, just a blue error screen.

i found an option name Port mapping(forward)
Intranet IP address | Intranet port | External network port | agreement
how to do on the 2 ports?
Sorry for delay. Only just saw your message.
That IP and Public IPv4 part can be confusing and i got it wrong the first time too :~ .

Ok. If you intend to play on PCSX2 then do this:

1. Get your Public IPv4 from https://www.whatismyip.com and Execute in Terminal

local-dns-config.sh

and put that ^^ Public IPv4 to replace the xxx.xxx.xxx.xxx in

gate1.jp.dnas.playstation.org/xxx.xxx.xxx.xxx
www01.kddi-mmbb.jp/xxx.xxx.xxx.xxx

then Execute in Terminal

restart-dns.sh

2. Next separately Execute in Terminal

run-file1-server.sh

run-file2-server.sh

and put that same ^^ Public IPv4 to replace the xxx.xxx.xxx.xxx in

gs_ip=xxx.xxx.xxx.xxx

3. In your PCSX2 CCLRdev9.ini.... wioll continue later.... gotta go to work now.

User avatar
dingoyabuki
Newbie
Posts: 5
Joined: Tue Nov 22, 2016 6:54 am
Contact:

Re: Plans to go open source

Postby dingoyabuki » Sun Jul 18, 2021 9:36 pm

Hey all,

I tried the VirtualBox OVA file that hill73n linked:
OutbreakServerGUI.ova

and configured my CLR_DEV9.ini to the VM's IP.

I can log on and create rooms with 2 instances of PCSX2 with File 2.

However, when I try to start a scenario, the member screen appears, then I get a black screen and get brought back to the Free Area.

In the terminal of the server, see the error:

Code: Select all

Lobbyserver closes connection to :/10.0.0.203:<some random port>
Does this ring a bell to anyone?
Is there a way to maybe increase the verbosity of the error messages?

Thanks.




Things I've tried/noticed:

* Both File 1 and File 2 have the same behavior, both with and without the English patch - I can create rooms and start scenarios, but I will be brought back to the scenario conclusion screen after seeing a black screen for a moment.

* "Infinite Loading Patch" for CLR_DEV9 did not help

* CLR_DEV9:Winsock Information: 8 : Closed Dead Connection appears in the PCSX2 console


EDIT:
I was running this server with the intention of it just being local.
the config.properties file had gs_ip set to 127.0.0.1, which is localhost, so I figured that would suffice. However, that was not the case. I found that I still had to modify the file and set gs_ip to the local IP of the network adapter.

Run ifconfig and get the "inet" value of eth0 if you are using VirtualBox.

I'm now able to run games. Thanks to everyone who worked on this!

User avatar
dingoyabuki
Newbie
Posts: 5
Joined: Tue Nov 22, 2016 6:54 am
Contact:

Re: Plans to go open source

Postby dingoyabuki » Mon Jul 19, 2021 6:03 am

Here's a tutorial I made for the visual learners out there
https://www.youtube.com/watch?v=ZSYnMp6 ... e=youtu.be

There's a timeout about 30 minutes that occurs if you do not press any buttons while connected to a server, after which you get disconnected. I've dug around the source code, and I don't see anything handling this.

Does anyone know if this is handled by the server, or if it's handled by the client (the game itself)?

User avatar
killme
Full Member
Posts: 113
Joined: Thu Mar 22, 2018 7:54 pm

Re: Plans to go open source

Postby killme » Sat Jul 24, 2021 3:17 pm

Here's a tutorial I made for the visual learners out there
https://www.youtube.com/watch?v=ZSYnMp6 ... e=youtu.be

There's a timeout about 30 minutes that occurs if you do not press any buttons while connected to a server, after which you get disconnected. I've dug around the source code, and I don't see anything handling this.

Does anyone know if this is handled by the server, or if it's handled by the client (the game itself)?
thanks, it works, finally found the problem is CLR_DEV9.ini, i was following ur video :-P
Image

User avatar
killme
Full Member
Posts: 113
Joined: Thu Mar 22, 2018 7:54 pm

Re: Plans to go open source

Postby killme » Sun Jul 25, 2021 7:36 am

Here's a tutorial I made for the visual learners out there
https://www.youtube.com/watch?v=ZSYnMp6 ... e=youtu.be

There's a timeout about 30 minutes that occurs if you do not press any buttons while connected to a server, after which you get disconnected. I've dug around the source code, and I don't see anything handling this.

Does anyone know if this is handled by the server, or if it's handled by the client (the game itself)?
30 mins countdown: 0x2062E344
Image

User avatar
dingoyabuki
Newbie
Posts: 5
Joined: Tue Nov 22, 2016 6:54 am
Contact:

Re: Plans to go open source

Postby dingoyabuki » Tue Jul 27, 2021 3:45 am

Here's a tutorial I made for the visual learners out there
https://www.youtube.com/watch?v=ZSYnMp6 ... e=youtu.be

There's a timeout about 30 minutes that occurs if you do not press any buttons while connected to a server, after which you get disconnected. I've dug around the source code, and I don't see anything handling this.

Does anyone know if this is handled by the server, or if it's handled by the client (the game itself)?
thanks, it works, finally found the problem is CLR_DEV9.ini, i was following ur video :-P
That's awesome, I'm glad it was able to help!

Also, with gh0stl1ne's help, my solution for "disabling" the input timeout was modifying PacketHandler.java's void send61A0() function, modifying latency's first 4 bits to be a huge number.

In my case I changed it from:

Code: Select all

byte[] latency = {0x00,0x00,0x07,0x08,0x00,0x00,0x02,0x58};
(0x00000708) = 1800 seconds = 30 minutes

to:

Code: Select all

byte[] latency = {0x00,0x09,0x01,0x2C,0x00,0x00,0x02,0x58};
(0x0009012C) = 590124 seconds = 9835.4 minutes, which is more than enough time for me (I want to bring a setup for this to conventions, where there will be times the game is unattended for a while)

User avatar
hill73n
Sr. Member
Posts: 252
Joined: Mon May 20, 2019 4:49 am
Location: Australia

Re: Plans to go open source

Postby hill73n » Sun Aug 01, 2021 7:15 am

Here's a tutorial I made for the visual learners out there
https://www.youtube.com/watch?v=ZSYnMp6 ... e=youtu.be

There's a timeout about 30 minutes that occurs if you do not press any buttons while connected to a server, after which you get disconnected. I've dug around the source code, and I don't see anything handling this.

Does anyone know if this is handled by the server, or if it's handled by the client (the game itself)?
thanks, it works, finally found the problem is CLR_DEV9.ini, i was following ur video :-P
That's awesome, I'm glad it was able to help!

Also, with gh0stl1ne's help, my solution for "disabling" the input timeout was modifying PacketHandler.java's void send61A0() function, modifying latency's first 4 bits to be a huge number.

In my case I changed it from:

Code: Select all

byte[] latency = {0x00,0x00,0x07,0x08,0x00,0x00,0x02,0x58};
(0x00000708) = 1800 seconds = 30 minutes

to:

Code: Select all

byte[] latency = {0x00,0x09,0x01,0x2C,0x00,0x00,0x02,0x58};
(0x0009012C) = 590124 seconds = 9835.4 minutes, which is more than enough time for me (I want to bring a setup for this to conventions, where there will be times the game is unattended for a while)
Awesome video! I left a comment :D

Where exactly can we apply this solution to lengthen the timeout flag ^^?

Kronan
Newbie
Posts: 1
Joined: Mon Jun 04, 2018 7:53 am

Re: Plans to go open source

Postby Kronan » Sun Dec 19, 2021 12:08 am

hello everyone! i'm kinda new to this community even tho i have had an account for 4 years on here XD
So i have been trying to make my server work here in EU because it's a bit laggy to use what i believe is the current DNS for obsrv server 173.233.94.154: bytes=32 time=104ms

so i went ahead and hosted one on my own network, but idk if it works for other people yet and we are gonna host like a retro lan event in the upcoming months. i would appreciate if someone could give it go and check if it works :)

for PCSX2 in CLR_DEV9.ini

<Hosts>
<ConfigHost>
<Desc>Set DNS to 192.0.2.1 to use this host list</Desc>
<Enabled>false</Enabled>
<IP>0.0.0.0</IP>
<URL>www.example.com</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak Login</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>www01.kddi-mmbb.jp</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak Lobby</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>kddi-mmbb.jp</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak DNAS</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>gate1.jp.dnas.playstation.org</URL>
</ConfigHost>
</Hosts>

<DNS1>192.0.2.1</DNS1>

for PS2 i think only the DNS needs to be setup to 81.224.201.111 right?
Thanks everyone who wants to give it a try :D

User avatar
Isles487
Sr. Member
Posts: 1140
Joined: Sat Jul 27, 2013 6:10 pm

Re: Plans to go open source

Postby Isles487 » Sun Dec 19, 2021 7:08 pm

hello everyone! i'm kinda new to this community even tho i have had an account for 4 years on here XD
So i have been trying to make my server work here in EU because it's a bit laggy to use what i believe is the current DNS for obsrv server 173.233.94.154: bytes=32 time=104ms

so i went ahead and hosted one on my own network, but idk if it works for other people yet and we are gonna host like a retro lan event in the upcoming months. i would appreciate if someone could give it go and check if it works :)

for PCSX2 in CLR_DEV9.ini

<Hosts>
<ConfigHost>
<Desc>Set DNS to 192.0.2.1 to use this host list</Desc>
<Enabled>false</Enabled>
<IP>0.0.0.0</IP>
<URL>www.example.com</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak Login</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>www01.kddi-mmbb.jp</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak Lobby</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>kddi-mmbb.jp</URL>
</ConfigHost>
<ConfigHost>
<Desc>Outbreak DNAS</Desc>
<Enabled>true</Enabled>
<IP>81.224.201.111</IP>
<URL>gate1.jp.dnas.playstation.org</URL>
</ConfigHost>
</Hosts>

<DNS1>192.0.2.1</DNS1>

for PS2 i think only the DNS needs to be setup to 81.224.201.111 right?
Thanks everyone who wants to give it a try :D
If you're setting custom DNS entries in the CLR Dev9 config file as you're doing here, the in-game DNS needs to be set to 192.0.2.1 or "auto." Additionally, in the CLR Dev9 plugin settings, set both DNS 1 and DNS 2 to 192.0.2.1. Each user would need to do this on their own setup so that all the DNS calls will point to your server.

If you want less setup on your clients' end, you can roll your own DNS server and have that point to your game server instead. Your clients would only need to set your DNS server IP in their in-game DNS settings.
Image

AirysDark
Newbie
Posts: 4
Joined: Sat Feb 21, 2015 12:47 pm

Re: Plans to go open source

Postby AirysDark » Thu Jan 06, 2022 11:20 pm

Hey guys I've got the server running local. gotten a real ps2 and emulator to connect. But I've tried to get it online but the only port I cannot open is port 443.

is anyone having that problem too?

if not i guess its my ISP.


Return to “News”



Who is online

Users browsing this forum: Google [Bot] and 3 guests