View Issue Details

IDProjectCategoryView StatusLast Update
0004478Spring engineGeneralpublic2014-08-05 14:14
ReporterKingRaptor Assigned TojK  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version97.0.1+git 
Target Version98.0 
Summary0004478: Loading save game: "User name not authorized to connect"
DescriptionWhen a Spring game is started in any way other than directly launching the executable (e.g. with a lobby client), and that game is saved (/save[game]), attempting to open the save file with Spring quits with the error: "Remote requested quit: Connection rejected: User name not authorized to connect"

Tested with Spring 97.0.1-183-g3335a9e develop. Example save file (from a BA v8.00 game launched with SpringLobby 0.196) and infolog attached.
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
TestSave_Comet_Catcher_Redux_BA_v8.00.ssf (Attachment missing)
Checked infolog.txt for Errors

Activities

abma

2014-07-27 20:46

administrator   ~0013444

it doesn't crash, stacktrace is from a hang:

C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x009803C4 path.cpp:0
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008F4FDE /slave/mingwlibs/include/boost/filesystem/operations.hpp:174
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E1938 rts/System/FileSystem/ArchiveScanner.cpp:458
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E864E rts/System/FileSystem/ArchiveScanner.cpp:389
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E8ECF rts/System/FileSystem/ArchiveScanner.cpp:362
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008F70E0 FileSystemInitializer.cpp:0
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008C0128 rts/System/SpringApp.cpp:881
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x0089CB56 rts/System/Main.cpp:48
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x00F562E4 rts/System/Main.cpp:107
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x00401402 crtexe.c:0

KingRaptor

2014-07-28 08:12

reporter   ~0013449

Last edited: 2014-07-28 09:39

That's just a temporary hang during loading, I get those all the time.

Upon further testing, I can open the save file if I set (player) name in springsettings to match the one in the script. So I just need a way to find out ahead of time what name to use and tell Spring to use it for this specific run.

ETA: Though it would still be preferable if Spring automatically used the playername in the startscript as the playername connecting. That way the save can simply be opened directly, without needing to check for the correct player name and pass it to Spring.

jK

2014-07-30 03:05

developer   ~0013450

how should it know the username when there are multiple players in the savegame?

abma

2014-07-30 11:18

administrator   ~0013451

Last edited: 2014-07-30 11:21

a local stored save game should store the local used username/password so it can be (re)used when loading a savegame ?!

a lobby could optionally set the username but imo it should work without interaction of a lobby.

KingRaptor

2014-07-30 13:02

reporter   ~0013452

Last edited: 2014-07-30 13:03

It's already stored in the save game's startscript as myplayername=<name>;

jK

2014-08-03 04:49

developer   ~0013461

the error has nothing to do with the save game. the file path contains spaces and the lobby forgot to quote. I will commit an improved reporting of that when my internet is fixed

Issue History

Date Modified Username Field Change
2014-07-27 12:08 KingRaptor New Issue
2014-07-27 12:08 KingRaptor File Added: infolog.txt
2014-07-27 12:09 KingRaptor File Added: TestSave_Comet_Catcher_Redux_BA_v8.00.ssf
2014-07-27 20:46 abma Note Added: 0013444
2014-07-27 20:46 abma Description Updated
2014-07-28 08:12 KingRaptor Note Added: 0013449
2014-07-28 09:39 KingRaptor Note Edited: 0013449
2014-07-30 03:05 jK Note Added: 0013450
2014-07-30 11:18 abma Note Added: 0013451
2014-07-30 11:21 abma Note Edited: 0013451
2014-07-30 13:02 KingRaptor Note Added: 0013452
2014-07-30 13:03 KingRaptor Note Edited: 0013452
2014-07-30 14:04 abma Target Version => 98.0
2014-08-03 04:39 jK Assigned To => jK
2014-08-03 04:39 jK Status new => assigned
2014-08-03 04:49 jK Note Added: 0013461
2014-08-05 14:14 jK Changeset attached => spring develop fbc9e91f
2014-08-05 14:14 jK Status assigned => resolved
2014-08-05 14:14 jK Resolution open => fixed