Please, help me with sbarinfo little problems!

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
BarneyTheDinosaur
New User
Posts: 13
Joined: Thu Jan 02, 2014 8:38 am
Location: Inside your mind

Please, help me with sbarinfo little problems!

#1

Post by BarneyTheDinosaur » Thu Jan 02, 2014 11:14 am

Hey guys! I'm new here, and i am currently working on a christmas wad for the next one, this will be my first wad to be released ever. Initially i started testing it on GzDoom for no reason, but when i tried to open it on Zandronum at the first time, i got some problems, and i already fixed part of them (like A_SetScale, some decorate flags and etc..) But now i am having trouble on Sbarinfo lump, i already tried things like inverting "}" or removing some of them on the code.. But i just don't know what to do.. Could someone help me? There are two things that may help you to help me:

here is the code of the Sbarinfo lump:

http://pastebin.com/qcswwYxE

here is a little wad with the same Sbarinfo, if you want to test it:

http://www.mediafire.com/download/enegr ... arinfo.wad



The message error:
Execution could not continue.

Script error, "Christmas.wad:SBARINFO" line 34:
Expected '}' but got 'for' instead.



As i said, i tried to invert "}" and even removing it sometimes, but the error just keep appearing in other lines, i just don't know what to do. So i hope you guys could help me!


PS: Sorry my english. I am currently learning it and i don't know when i will finish my lessons. So i entered on the forum to the letter. Would be awesome if you pm me my gramatical erros sometimes!
Last edited by BarneyTheDinosaur on Thu Jan 02, 2014 1:56 pm, edited 1 time in total.
Thank you for existing and supporting this game! Love you all.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Please, help me with sbarinfo little problems!

#2

Post by -Jes- » Thu Jan 02, 2014 1:32 pm

Else was only added to SBARINFO code in ZDoom 2.7.1.
Zandronum is currently only 2.3.1 - to see its functionality, check the matching history of SBARINFO on ZDoom wiki.


Anyway, here there was a fixed file, no hosted by Best Ever.
The following changed:
line 34 else -> usessecondaryammo not
line 40 new line, } added
line 41 else -> usesammo not
line 48 removed
line 50 gamemode deathmatch -> gamemode deathmatch, teamgame
line 54 else -> gamemode cooperative, singleplayer

line 75 to 78 ammo(*), -> ammo *,
line 80 to 83 ammocapacity(*), -> ammocapacity *,
line 102 111 117 removed
Last edited by -Jes- on Sat Jan 04, 2014 12:19 pm, edited 1 time in total.

User avatar
BarneyTheDinosaur
New User
Posts: 13
Joined: Thu Jan 02, 2014 8:38 am
Location: Inside your mind

RE: Please, help me with sbarinfo little problems!

#3

Post by BarneyTheDinosaur » Thu Jan 02, 2014 2:01 pm

Thank you very much!
Thank you for existing and supporting this game! Love you all.

Post Reply