[SOLVED] Spikeout netboard issue in different builds

Having technical difficulties with Supermodel? Last-minute wardrobe malfunction? Get help here.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

[SOLVED] Spikeout netboard issue in different builds

Postby segaduck » Tue Oct 06, 2020 4:54 am

I have successful set up the 2 players netplay of "Spikeout Final Edtion/Spikeout".
However, it seems that some of the SVN builds cannot work at all and only some specific SVN builds can.

I tested the official the official release versions which downloaded from https://www.mediafire.com/folder/jqqg6jzzp6dfi/Supermodel+Releases). (which marked as "Release")
For testing more possibility, I also compiled some versions following by the instructions "Building Supermodel From Source Code On Windows Using MSYS2 And GCC" with the ET_BOARD variable "NET_BOARD = 1" . (which marked as "Compiled")

The testing result so far:

(1) Working builds:
r803 Release
r787 Release
r803 Compiled
r787 Compiled
Image
Image

(2) Not working builds:
The emulator crashed when booting-up:
r830 Release
r823 Release
r821 Release

The emulator could run without crash, but showed "CANCELLED, NETWORK BOARD NOT PRESENT":
r830 Compiled
r828 Compiled
r827 Compiled
r826 Compiled
r823 Compiled
r821 Compiled
r819 Compiled

Image

I do not know if I got somehting wrong. Can anyone tell me how to fix it ?
Thank you very much.
Last edited by segaduck on Sun Oct 11, 2020 4:50 am, edited 1 time in total.
segaduck
 
Posts: 52
Joined: Thu Oct 01, 2020 9:23 am

Re: Spikeout netboard issue in different builds

Postby Bart » Tue Oct 06, 2020 10:06 pm

First, I'm not sure what you mean by "release". There has never been a release made after 0.2a. You must be referring to someone else's custom build.

Second, when you compile your own builds and set NET_BOARD=1, make sure to clean the build first before re-building:

Code: Select all
make clean
make -f Makefiles/Makefile.Win32


Third, what command are you using to run it? Did you enable net play on the command line and configure Supermodel.ini appropriately?
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Spikeout netboard issue in different builds

Postby segaduck » Tue Oct 06, 2020 11:10 pm

Dear Bart,

First, thanks a lot for your reply.
Sorry for the misunderstanding and using the wrong word "release".

(1) In my test the "release" should be others custom builds which I got from the following Supermodel Forum thread:
====================================================================
The Catwalk --> Supermodel Latest Builds for Download (currently SVN 830)
====================================================================
Supermodel Latest Builds for Download (currently SVN 830)
Postby Jiterdomer » Sun May 29, 2016 7:55 am

SVN 830 Release:
http://www.mediafire.com/file/zcq0d5f1bepksbp/ <---I got the 830 version from this link

SVN 830 Debug:
http://www.mediafire.com/file/imf9hw52stgmp/

Past Builds:

Release
https://www.mediafire.com/folder/jqqg6j ... l+Releases <---I got all other versions from this link

Debug
https://www.mediafire.com/folder/imf9hw ... odel+Debug
====================================================================


(2) I used the following command every time to clean before I compile every other builds.
====================================================================
mingw32-make -f Makefiles\Makefile.Win32 clean
====================================================================

And use the following command to compile new builds after cleaning
====================================================================
mingw32-make -f Makefiles\Makefile.Win32
====================================================================


(3) I wrote a simple batch to run 2 instances
====================================================================
start /D"C:\Spikeout\SuperModel P1" Supermodel.exe -net -no-threads -show-fps -res=640,480 spikeofe.zip
start /D"C:\Spikeout\SuperModel P2" Supermodel.exe -net -no-threads -show-fps -res=640,480 spikeofe.zip
====================================================================

That's what I tried.
Thank you.
segaduck
 
Posts: 52
Joined: Thu Oct 01, 2020 9:23 am

Re: Spikeout netboard issue in different builds

Postby Spindizzi » Wed Oct 07, 2020 1:46 am

hi,
I can't notice any things wrong here with svn830, I remake all from scratch to verify!
not sure that this really helps you but in case...

building Supermodel with mingw from svn830 (last one actually)
Code: Select all
make -f Makefiles\Makefile.Win32 NET_BOARD=1

clean before if it needed!
NET_BOARD=1 is needed if you want network to be enabled
note : depending your development environment, you had to edit makefile.win32 to change you sdl2 directory for lib and include

create folders somewhere like this
Code: Select all
supermodelnettest
 |--master
      |--config
      |--NVRAM
 |--slave
      |--config
      |--NVRAM

copy config\supermodel.ini and config\games.xml from your svn 830 directory to master and slave config folder (it is important to copy games.xml from the corresponding svn build you made)
copy supermodel.exe from your bin build folder to master and slave folder
depending your system config, you may need to copy also SDL2.dll and SDL2_net.dll to master and slave folder (and do not mix these dll from different build especially if it comes from different compiler (msvc, gcc) this may cause crashes)

edit supermodel.ini to setup your network
for example
Code: Select all
master:
EmulateNet=1
port_in=1977
addr_in="127.0.0.1"
port_out=1978
addr_out="127.0.0.1"

slave:
EmulateNet=1
port_in=1978
addr_in="127.0.0.1"
port_out=1977
addr_out="127.0.0.1"

edit to suit your needs

launch master from his folder
set up its network config in service menu

launch slave from his folder
set up its network config in service menu

note : as I put EmulateNet=1 in supermodel.ini you may need to launch with -no-net option to change network settings in service menu

I've also create a simple batch to launch 2 instances of Supermodel (create a run.bat in master folder)
Code: Select all
j:
cd \Temp\supnettest\master
start supermodel -show-fps -ppc-frequency=%2 %1 %3 %4
cd \Temp\supnettest\slave
start supermodel -show-fps -ppc-frequency=%2 %1 %3 %4
cd \Temp\supnettest\master

edit directory to suit your needs

goto master folder and with this simple run.bat file, type
Code: Select all
run.bat spikeofe.zip 50 -no-threads

parameter 1 : rom file
parameter 2 : ppc frequency (50)
parameter 3 : -no-net
parameter 4 : none
Spindizzi
 
Posts: 196
Joined: Thu Nov 17, 2016 8:55 am
Location: France

Re: Spikeout netboard issue in different builds

Postby segaduck » Wed Oct 07, 2020 7:04 am

Thank you for your great reply in detail and I learned a lot from it.

I found it is my fault that I DID NOT use the games.xml from the corresponding svn build I made.

After correcting this stupid mistake, I successfully had it run as I expected.
Thank you very much.

And wish we can see the new net code that will not drop FPS someday in the future.
Sincerely thanks for everyone who has contributed to the great emulator SuperModel.
segaduck
 
Posts: 52
Joined: Thu Oct 01, 2020 9:23 am


Return to The Fitting Room

Who is online

Users browsing this forum: No registered users and 1 guest