TarCV / botc

Fork of Dusk's botc compiler *OPEN FOR ADOPTION*
Other
1 stars 0 forks source link

bool functions don't work? #26

Open BinarryCode opened 1 year ago

BinarryCode commented 1 year ago

zandronum 3.2's latest alpha build has added extra botscript functions which could potentially make this tool more useful, however this is an issue: image

TarCV commented 1 year ago

Could you check if build from https://github.com/TarCV/botc/pull/7 works for you? I started implementing support for such booleans there, but not sure if it's complete.

BinarryCode commented 1 year ago

do you have it compiled? it says "All checks have failed".

TarCV commented 1 year ago

Managed to build it on Azure, hopefully this link would work: https://dev.azure.com/tarcv/botc/_build/results?buildId=133&view=artifacts&pathAsName=false&type=publishedArtifacts To download hover linux item, click three dots on the right and click Download.

I can try building this branch for Windows or Mac sometime this week if you need it.

BinarryCode commented 1 year ago

yeah I need the windows branch compiled lol

TarCV commented 1 year ago

Windows build should be available under Windows item from https://dev.azure.com/tarcv/botc/_build/results?buildId=136&view=artifacts&pathAsName=false&type=publishedArtifacts

BinarryCode commented 1 year ago

only two issues were version related (had to make it set to 1.0 for both) and the memset lines (unknown token `memset`), after i changed the version lines and commented out the memset lines it compiles properly

BinarryCode commented 1 year ago

btw if you want to add the 3.2 functions you should just need to add this to the botc defs file

funcdef int     93:ACS_ExecuteWithResult (int script, int arg0 = 0, int arg1 = 0, int arg2 = 0, int arg3 = 0);
funcdef void    94:BeginAltFiringWeapon();
funcdef void    95:StopAltFiringWeapon();
funcdef void    96:BeginCrouching();
funcdef void    97:StopCrouching();
funcdef void    98:BeginReloading();
funcdef void    99:StopReloading();
funcdef void    100:BeginZooming();
funcdef void    101:StopZooming();
funcdef void    102:BeginUser (int key = 0);
funcdef void    103:StopUser (int key = 0);
funcdef void    104:BeginSpeed();
funcdef void    105:StopSpeed();
funcdef void    106:PressUse();
funcdef int     107:ACS_NamedExecuteWithResult (str script, int arg0 = 0, int arg1 = 0, int arg2 = 0, int arg3 = 0);