Page 1 of 1

Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 5:44 am
by Mihail82
I`ve just tried to migrate my config with Zandronum Config migrator (https://bitbucket.org/crimsondusk/zandr ... r/overview) and just get message "Nothing to migrate".

Example of config:

[spoiler]set fraglimit "30";
set iwad "doom2.wad";
set sv_motd " *** Welcome to Doom2 Old School Deathmatch server from WEBA ISP *** ";
set removebotswhenhumans "1";
set difficulty "5";
set deathmatch "1";
set spam_window "10";
set spam_limit "3";
set sv_hostname "ISP WEBA :: Old School Deathmatch";
set sv_maxclients "4";
set sv_maxplayers "4;
set timelimit "0";
set DmFlags "3101824";
set DmFlags2 "59508224";
set DmFlags3 "5";
set CompatFlags "394010113";
set CompatFlags2 "1";
logfile "/usr/games/doom2st/LOG/ServerDM_OLDSCHOOL.log";
set sv_website "http://d2st.weba.ru/wad/";

echo " ### Config MAP-List ### ";

clearmaplist;
addmap "map01";
addmap "map07";
addmap "map32";
maplist;

map "map01";

sv_maprotation true;
sv_randommaprotation false;[/spoiler]

RE: Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 6:01 am
by Sean
AFAIK it just migrates DMFlags etc. and you don't have any. So there's nothing to migrate.

RE: Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 7:18 am
by Mihail82
Sean wrote: AFAIK it just migrates DMFlags etc. and you don't have any. So there's nothing to migrate.
Hm..

<set DmFlags "3101824";
set DmFlags2 "59508224";
set DmFlags3 "5";
set CompatFlags "394010113";
set CompatFlags2 "1";>

It`s not DMFlags? I thought that those strings and "CompatFlags" must be changed cause in script I see

"'name': 'sv_norocketjumping',
'oldset': 'dmflags2',
'oldbit': (1 << 19),
'newset': 'zadmflags',
'newbit': (1 << 9),"

and

"'name': 'compat_disabletaunts',
'oldset': 'compatflags',
'oldbit': (1 << 20),
'newset': 'zacompatflags',
'newbit': (1 << 20),"

Is the script case senstive cause i Have not "dmflags2" but "DmFlags2" for example?

RE: Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 8:52 am
by Fused
Instead of all the extra quotes and semicolons, try migrating it like this:

dmflags 3101824
dmflags2 59508224
dmflags3 5
compatflags 394010113
compatflags2 1

RE: Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 9:39 am
by Mihail82
Fused wrote: Instead of all the extra quotes and semicolons, try migrating it like this:

dmflags 3101824
dmflags2 59508224
dmflags3 5
compatflags 394010113
compatflags2 1
Worked in such way, thank you.

RE: Can not migrate Zandronum 1.3 configs to 2.0 with Python script

Posted: Tue Jun 02, 2015 8:54 pm
by Sean
Ugh, I missed that. That's me at 7 in the morning, I guess.