Local dev server and lobby

Questions / Announcements area for beta tests of Allegiance's future updates.
Post Reply
Djole88
Posts: 438
Joined: Wed Jul 10, 2013 11:10 am
Location: Србија
Contact:

Post by Djole88 »

I can't join the game I created.

What I did:
HKEY_LOCAL_MACHINE\SOFTWARE\Allegiance\1.2\Server wrote:QUOTE (HKEY_LOCAL_MACHINE\SOFTWARE\Allegiance\1.2\Server)"CfgFile"=<server_cfg_file>
"ArtPath"=<correct beta art path>
"LocalAddress"="Djorver"
"Location"="Serbia"
"MaxPlayersPerGame"=dword:000000c8
"nUpdatesPerSecond"=dword:00000014
"LangID"=dword:00000009
"FIRSTRUN"=dword:00000001
"InstalledGroup"="1"
"Launched"="1"
"Version"="1.2"
"MaxGames"=dword:00000002
"GameParameters"=hex:ff,ff,ff,ff,00,00,00,00,db,00,00,00,ec,03,00,00,44,6a,6f,\
6c,65,27,73,20,47,61,6d,65,00,20,47,61,6d,65,20,4e,61,6d,65,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,50,43,6f,72,65,30,30,35,62,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,99,5f,48,43,04,00,02,00,00,00,00,00,00,00,00,00,0e,74,5a,3b,\
89,88,08,3c,00,00,00,00,00,00,80,3f,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,70,41,00,00,70,42,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\
ff,ff,64,00,64,00,64,00,00,00,00,00,00,00,01,00,01,00,01,00,01,00,00,00,80,\
3f,ff,7f,08,00,00,00,00,00,01,00,00,00,00,00,02,00,ff,ff,e8,03,00,00,00,00,\
01,00,14,00,14,00,00,00,05,00,02,00,04,00,01,00,01,00,01,10,01,04,20,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,54,\
65,61,6d,20,31,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,54,\
65,61,6d,20,32,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,cd,\
cd,00,00,00,00,00,00,00,00,02,00,00,00,00,00
"WindowPlacement"=hex:2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,ff,\
ff,ff,ff,ff,ff,ff,ff,ff,ff,b4,01,00,00,21,02,00,00,16,03,00,00,93,03,00,00
"GameParameters" and "WindowPlacement" have written themselves in.
client config file wrote:QUOTE (client config file)

Code: Select all

[Allegiance]
LobbyClientPort=2302
LobbyServerPort=2303
ZoneAuthGUID={00000000-0000-0000-C000-000000000046}
ZAuth=127.0.0.1
UsePassport=0
PassportUpdateURL=http://127.0.0.1
ZoneEventsURL=http://127.0.0.1
ZoneEventDetailsURL=http://127.0.0.1/au/motd/events.mdl
ClubLobby=127.0.0.1
Club=127.0.0.1
ClubMessageURL=http://127.0.0.1/au/motd/messageoftheday.mdl
ClubMessageCRC=0
PublicLobby=127.0.0.1
PublicMessageURL=http://127.0.0.1/au/motd/messageoftheday.mdl
PublicMessageCRC=0
TrainingURLL=http://127.0.0.1
FilelistSite=http://127.0.0.1
FilelistDirectory=/autoupdate/game
FileListCRC = 0
FilelistSize = 0

[Cores]
PCore005b=PCore005b
;cc_09=cc_09
;cc_13c=cc_13c
;cc_13d=cc_13d
;xc05=xc05
;xc06=xc06

[OfficialCores]
PCore005b=true
;cc_09=true
;cc_13c=true
;cc_13d=true
;xc05=true
;xc06=true

[OfficialServers]
Djorver=192.168.1.18
;CSS=204.14.17.27

[AllSrvUI]
Site=http://127.0.0.1

; THIS IS A VALID CONFIG FILE
Allegiance.cfg that is beside the Alllobby wrote:QUOTE (Allegiance.cfg that is beside the Alllobby)

Code: Select all

[Lobby]
NumberOfServers=1
FilterType=Allow
Server1=192.168.1.18
maps.txt in the artwork folder wrote:QUOTE (maps.txt in the artwork folder)1
2,Ammolite,m2x3ammolite
AllSrv output wrote:QUOTE (AllSrv output)Microsoft ® Allegiance Game Server NT Service
Copyright ⌐ 1995-2000. All rights reserved.

Running as an executable.
Initializing...
Type 'Q' to Quit.
Type 'P' to Pause.
Type 'C' to Continue.
Preparing server...
Preparing public session for clients ... succeeded.
Connecting to lobby: 192.168.1.18 ... succeeded.
Server continued..
Ready for clients.
QUOTE (Debug output)

Code: Select all

Creating message box with text "Asking about servers and cores..."
AllLobby: Client: FM_C_GET_SERVERS_REQ from <Djole@END> at time 5138618
got OnServersList: 2, 1
  core PCore001
  core PCore005b
  server 0
    name = Djorver
    addr = 192.168.1.18
    loca = Serbia
    curg = 0
    magx = 2
    mask = 3
Creating message box with text "Creating a game..."
AllLobby: Client: FM_C_CREATE_MISSION_REQ from <Djole@END> at time 5141413
AllLobby: Received mission creation request from Djole@END - create Djole@END's game with PCore005b on Djorver
AllLobby: Created mission, cookie=277110,
  on Djorver/192.168.1.18 (which already had 0 players),
  requested by Djole@END
AllLobby: Timer: 0.001000s spent in dplay Send, 0.001000s total (longest so far)
AllLobby: ^--dpidTo=73bfc9ad, guaranteed=1, hr=15800e, 1st message (fmid)=255
AllLobby: FM_LS_LOBBYMISSIONINFO:0 (pmission:277110 cookie:277110) sent cookie:277110 connected?1
AllLobby:     FM_LS_LOBBYMISSIONINFO:192.168.1.18 sent port 0
AllLobby: !!! Got FMD_LS_LOBBYMISSIONINFO for mission (cookie=277110) that I don't know about
AllLobby: Timer: 4.057000s spent in servers ReceiveMessages(), 4.061000s total (longest so far)
AllLobby: Timer: 4.059000s spent between iterations, 62.437000s total (longest so far)
Terminating mission id=0, this=df1620 igccount=0
moving 0 ships to NULL mission
nuking 0 clusters
nuking 0 sides
Mission Initialize id=0 this=df1620 now=5147788
$$MSRGuard:Set:UserName=Djole@END
Creating message box with text "Failed to connect to the server."
[/quote]

Lobby works, server connects to lobby, I can create a game but I can't join it... I am not getting any error messages (actually the strange debug outputs bugs me but Imago says its fine). I've used wireshark to determine if this could be a no-NAT-loopback problem and its not. What did I miss?

I got this far mostly by $#@!ing debugging...
Last edited by Djole88 on Sun Sep 07, 2014 11:52 am, edited 1 time in total.
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

Speaking of lobby, is the normal one down?
I keep getting "the failed to connect to the lobby" warning.
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]
Image
pkk
Posts: 5417
Joined: Tue Jul 01, 2003 7:00 am
Location: Germany, Munich

Post by pkk »

I guess you should check you firewall settings...

It's also helpful to disable IPv6/other network devices when running a server. Allegiance has problems with more than one IP address on a PC.
The Escapist (Justin Emerson) @ Dec 21 2010, 02:33 PM:
The history of open-source Allegiance is paved with the bodies of dead code branches, forum flame wars, and personal vendettas. But a community remains because people still love the game.
BackTrak
Posts: 2078
Joined: Thu Mar 08, 2007 4:52 am
Location: Chicago, IL
Contact:

Post by BackTrak »

I wish I had more time, and I can't quite remember, but here's my server reg which is working:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft Games\Allegiance\1.2\Server]
"ArtPath"="C:\\Program Files (x86)\\Microsoft Games\\Allegiance 1.2\\Production\\Artwork"
"CfgFile"="http://localhost/allegiance-local.txt"
"Core1"="cc_09b"
"Game1"="Main Game"
"InstalledGroup"="1"
"Launched"="1"
"Location"="Chicago, IL"
"LocalAddress"="CSS"
"Version"="1"
"ASGS_ON"=dword:00000000
"ASGS_RANKS_ON"=dword:00000000
"FIRSTRUN"=dword:00000001
"HasTrained"=dword:00000001
"LangID"=dword:00000009
"MaxGames"=dword:00000010
"MaxPlayersPerGame"=dword:00000064
"nUpdatesPerSecond"=dword:00000014

Here's my local config (lol, cc09!):

[Allegiance]
PublicLobby=127.0.0.1
PublicMessageURL=http://allegiance.chi-town.com/CSS/Cont ... ?lobbyID=2
LobbyClientPort=2302
LobbyServerPort=2303

[Cores]
cc_09=CC 0.9

[OfficialCores]
cc_09=true

[OfficialServers]
FAZDev=allegiance.chi-town.com

[AllSrvUI]
Site=http://127.0.0.1


; THIS IS A VALID CONFIG FILE
ImageImage
raumvogel
Posts: 5910
Joined: Sun Jul 20, 2003 7:00 am
Location: My lawn
Contact:

Post by raumvogel »

I make it to the "free games" lobby,but fail to log in after that.

It was working fine yesterday,I've changed nothing on my computer. And I am not using a router.
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

I got the same exact issue. ): BT! HELP!
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]
Image
ThePhantom032
Posts: 836
Joined: Sat May 09, 2009 11:00 am
Location: Germany

Post by ThePhantom032 »

Can't help you with lobby setup, I use LAN server for core testing and that already took forever to figure out how to set up and I still have to bend my registry around every time I use it.
Still ready to teach anyone who asks nicely whatever they want to know about playing alleg. Contrary to popular opinion I do not eat newbies. Voobs taste much better.
Djole88
Posts: 438
Joined: Wed Jul 10, 2013 11:10 am
Location: Србија
Contact:

Post by Djole88 »

I've reinstalled alleg, and changed the setup to:

Code: Select all

 
@echo off
setlocal
rem param 1 is the art path
rem param 2 is the cfg file 
rem reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server"
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v CfgFile /d "%2" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v ArtPath /d "%1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v LocalAddress /d "DbgSrv" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v Location /d "Here" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v MaxPlayerPerGame /t REG_DWORD /d 200 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v nUpdatesPerSecond /t REG_DWORD /d 20 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v LangID /t REG_DWORD /d 9 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v FIRSTRUN /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v InstalledGroup /d "1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v Launched /d "1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v Version /d "1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v MaxGames /t REG_DWORD /d 3 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v ASGS_ON /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v ASGS_RANKS_ON /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\Server" /v HasTrained /t REG_DWORD /d 1 /f

rem write config file
echo [Allegiance] > "%2"
echo PublicLobby=127.0.0.1 >> "%2"
echo;PublicMessageURL=http://fazdev.alleg.net/FAZ/motdR5.mdl >> "%2"
echo LobbyClientPort=2302 >> "%2"
echo LobbyServerPort=2303 >> "%2"
echo FileListCRC=0 >> "%2"
echo FilelistSize=0 >> "%2"
echo AutoUpdateCRC=0 >> "%2"

echo [Cores] >> "%2"
echo PCore005b=PCore005b >> "%2"
rem;cc_09=cc_09
rem;cc_13c=cc_13c
rem;cc_13d=cc_13d
rem;xc05=xc05
rem;xc06=xc06

echo [OfficialCores] >> "%2"
echo PCore005b=true >> "%2"
rem;cc_09=true
rem;cc_13c=true
rem;cc_13d=true
rem;xc05=true
rem;xc06=true

echo; THIS IS A VALID CONFIG FILE >> "%2"
echo. >> %2

rem write cores.txt
echo 1 > "%1\cores.txt" 
echo PCore005b >> "%1\cores.txt"
echo. >> "%1\cores.txt"

rem write maps.txt
echo 1 > "%1\maps.txt"
echo 2,Ammolite,m2x3ammolite >> "%1\maps.txt"
echo. >> "%1\maps.txt"

Code: Select all

@echo off
setlocal
rem param 1 is where the alllobby.exe is located
rem param 2 is the art path
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\AllLobby" /v AUTH_ON /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\AllLobby" /v GameInfoServers /d "127.0.0.1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\AllLobby" /v MaxPlayerPerGame /t REG_DWORD /d 200 /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2\AllLobby" /v ArtPath /d "%2" /f
rem write file
echo [Lobby] > "%1\Allegiance.txt"
echo nNumberOfServers=1 >> "%1\Allegiance.txt"
echo FilterType=Allow >> "%1\Allegiance.txt"
echo Server=127.0.0.1 >> "%1\Allegiance.txt"
echo. >> "%1\Allegiance.txt"

Code: Select all

@echo off
setlocal

rem %1 is artpath
rem %2 is cfgpath

reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2" /v ArtPath /d "%1" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2" /v CfgFile /d "%2" /f
reg add "HKLM\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.2" /v ServerAddress /d "127.0.0.1:2304" /f

echo [Allegiance] > "%2"
echo LobbyClientPort=2302 >> "%2"
echo LobbyServerPort=2303 >> "%2"
echo ZoneAuthGUID={00000000-0000-0000-C000-000000000046} >> "%2"
echo ZAuth=127.0.0.1 >> "%2"
echo UsePassport=0 >> "%2"
echo PassportUpdateURL=http://127.0.0.1 >> "%2"
echo ZoneEventsURL=http://127.0.0.1 >> "%2"
echo ZoneEventDetailsURL=http://127.0.0.1/au/motd/events.mdl >> "%2"
echo ClubLobby=127.0.0.1 >> "%2"
echo Club=127.0.0.1 >> "%2"
echo ClubMessageURL=http://127.0.0.1/au/motd/messageoftheday.mdl >> "%2"
echo ClubMessageCRC=0 >> "%2"
echo PublicLobby=127.0.0.1 >> "%2"
echo PublicMessageURL=http://127.0.0.1/au/motd/messageoftheday.mdl >> "%2"
echo PublicMessageCRC=0 >> "%2"
echo TrainingURLL=http://127.0.0.1 >> "%2"
echo FilelistSite=http://127.0.0.1 >> "%2"
echo FilelistDirectory=/autoupdate/game >> "%2"
echo FileListCRC = 0 >> "%2"
echo FilelistSize = 0 >> "%2"

echo [Cores] >> "%2"
echo PCore005b=PCore005b >> "%2"
rem;cc_09=cc_09
rem;cc_13c=cc_13c
rem;cc_13d=cc_13d
rem;xc05=xc05
rem;xc06=xc06

echo [OfficialCores] >> "%2"
echo PCore005b=true >> "%2"
rem;cc_09=true
rem;cc_13c=true
rem;cc_13d=true
rem;xc05=true
rem;xc06=true

echo [OfficialServers] >> "%2"
echo DbgSrv=127.0.0.1 >> "%2"
rem;CSS=204.14.17.27

echo [AllSrvUI] >> "%2"
echo Site=http://127.0.0.1 >> "%2"

echo; THIS IS A VALID CONFIG FILE >> "%2"
echo. >> "%2"
And now the client hangs when creating the game, although the client receives the message that the game was created
WTF is going on?
ThePhantom032
Posts: 836
Joined: Sat May 09, 2009 11:00 am
Location: Germany

Post by ThePhantom032 »

Artwork issue maybe? I only remember making a separate artwork folder and fiddling with stuff until it finally worked. For example my client would crash when choosing custom maps if using the same artwork folder as the server, and using a different folder to work from fixed that.
Last edited by ThePhantom032 on Mon Sep 08, 2014 11:07 am, edited 1 time in total.
Still ready to teach anyone who asks nicely whatever they want to know about playing alleg. Contrary to popular opinion I do not eat newbies. Voobs taste much better.
Djole88
Posts: 438
Joined: Wed Jul 10, 2013 11:10 am
Location: Србија
Contact:

Post by Djole88 »

was a ipv6 issue for joining (`yt Imago, `yt pkk), but now it again hangs on creating a game from the client and it wasn't doing that before (I guess I $#@!ed up 1 thing too many :P )... The client receives the ACK about the game being created but doesn't kill the window (didn't find the code where it should kill the msg box cuz it was 2:45am)

I can create a game using AllSrvUI or in the reg...

EDIT:
Solved, I can create games now too

The error was that I had an extra space after 'PCore005b' in my config files, so what happened is that the AllSrv refused to create it (Silently mind you!) but the lobby was finding it and returning ACK to the client so the client would hang

May I make a patch that sanitizes (pads) that input?

EDIT2: it does ouput to the debug file just not to the vs output window... and the space was introduced by my .bat files... in short I'm a moron
Last edited by Djole88 on Tue Sep 09, 2014 7:17 pm, edited 1 time in total.
Post Reply