Error (Unknown preprocessor directive 'DEFINE') upgrading to 3.0.1 (SOLVED)

Started by JpSoft, Wed 21/05/2008 16:06:50

Previous topic - Next topic

JpSoft

I just installed AGS 3.0.1 and opened my game with it. First thing i did: press F5 to verify... and i get this...

GlobalScript.ash(12): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(13): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(14): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(15): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(16): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(17): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(21): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(24): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(25): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(26): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(27): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(28): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(29): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(30): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(31): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(32): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(33): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(34): Unknown preprocessor directive 'DEFINE'
GlobalScript.ash(35): Unknown preprocessor directive 'DEFINE'

the code of my global script...

Code: ags

#DEFINE mio  1
#DEFINE suyo  2
#DEFINE neutral  3
#DEFINE unknow  0
#DEFINE suyounknow  4
#DEFINE suyoobjetivo  5

// Definir sonidos

#DEFINE m_intro               1


#DEFINE s_ametralladora               1
#DEFINE s_gentehablando               8
#DEFINE s_mardefondo                  3
#DEFINE s_click                       4
#DEFINE s_noclick                     5
#DEFINE s_granclick                   6
#DEFINE s_tanquemoviendo              7
#DEFINE s_otraciudad                  2
#DEFINE s_yescomander                 9
#DEFINE s_ambientevacio              10
#DEFINE s_howmayiserveyou            11
#DEFINE s_ventisca                   12


fisrt line of code is 12 and last 35. I checked the forums and looks like #DEFINE is not remove from AGS. I only read that the demo game can´t be compiled for something like this, but could it be solved or i must replace the definitions?

jp

GarageGothic

Try using "#define" written in all lowercase, it seems to work for me. I also had some problems with all cap "#DEFINE"s when converting to the most recent AGS versions.

JpSoft

Thanks, it works, but i decided continue with AGS 3.0.0 until i finish my current game

Jp

SMF spam blocked by CleanTalk