Advanced Search

Author Topic: compiler being difficult  (Read 1553 times)

0 Members and 1 Guest are viewing this topic.

August 02, 2016, 04:16:08 PM
Read 1553 times

Offline ice

  • MM8BDM Extender
  • ***
  • Date Registered: October 05, 2010, 05:09:31 PM

    • View Profile
compiler being difficult
« on: August 02, 2016, 04:16:08 PM »
Have been trying to find out how to do this on my own but I can't seem to make heads or tails out of any of it but, I was trying to update a mod I was working on that uses custom colors and decided to use the copy pasta method directly copying the WEPACS file from the core and started getting this error

Line 10 in file "SLADE8bdmlib.acs" ...
SLADE8bdmlib.acs:10: #library must come before anything else.

every time. I extracted 8bdm.acs in the same directory as my .acc as the file said

August 02, 2016, 10:49:32 PM
Reply #1

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: compiler being difficult
« Reply #1 on: August 02, 2016, 10:49:32 PM »
Okay, alright.
I planned on posting a thread about updating mods to version 5, but since I'm really slow with it, may as well post it here already.
Turns out ACC updated without me knowing and Version 5's ACS isn't compatible with it because the developers changed the rules.

You have two options:
1) Use my version of the ACC compiler and libraries. These are outdated in relation to the current release of ACC, but they contain everything necessary to compile 8BDM's ACS in version 5.

2) Note that this method has not been fully tested and may cause issues.
Use the latest ACC, but copy these variables into the file zdefs.acs:
Code: [Select]
// Zandronum game events ----------------------------------------------------
#define GAMEEVENT_PLAYERFRAGS 0
#define GAMEEVENT_MEDALS 1
#define GAMEEVENT_CAPTURES 2
#define GAMEEVENT_TOUCHES 3
#define GAMEEVENT_RETURNS 4
#define GAMEEVENT_ROUND_STARTS 5
#define GAMEEVENT_ROUND_ENDS 6
#define GAMEEVENT_ROUND_ABORTED 7

// Zandronum gamemode states ------------------------------------------------
#define GAMESTATE_UNSPECIFIED -1
#define GAMESTATE_WAITFORPLAYERS 0
#define GAMESTATE_COUNTDOWN 1
#define GAMESTATE_INPROGRESS 2
#define GAMESTATE_INRESULTSEQUENCE 3
[this information goes after the database definitions]
After that, you'd want to use a version of the ACS that can be compiled and run using the new ACS compiler:
Download
This code should be almost identical to v5a's ACS code, with the only differences being library placements.

I apologize for this inconvenience and it will be addressed in full once version 5b has been released.