Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: konijn on March 13, 2007, 14:01

Title: Issues with vutil.pas
Post by: konijn on March 13, 2007, 14:01
vutil.pas(303,14) Error: Illegal expression
vutil.pas(303,14) Error: Illegal expression
vutil.pas(303,14) Fatal: Syntax error, ";" expected but "identifier RANDOM" f
vutil.pas(3,24) Fatal: Compilation aborted

Do I need a special for the random instruction ?

It would be hard to write a roguelike without some randomization ;)

Cheers,T

PS : I downloaded free pascal from the web for windows with the installer and then put my source straight in the valkyrie folder.
Title: Re: Issues with vutil.pas
Post by: Kornel Kisielewicz on March 13, 2007, 15:54
Compile with the -Sc switch (enabling C style expressions "+=" "-=" "/=" "*="), or turn it on in the ide :).
Title: Re: Issues with vutil.pas
Post by: Aerton on March 14, 2007, 04:08
Sorry for derailing into offtopic, but what do these expressions mean?
I'm curious, I do not recall anything similar in C, C++ or pascal...
Title: Re: Issues with vutil.pas
Post by: konijn on March 14, 2007, 06:23
Compile with the -Sc switch (enabling C style expressions ":+" ":-" ":/" ":*"), or turn it on in the ide :).

;) This should be in the readme, together with the proper object oriented flag (  do you compile with -S2 or  -Sd ?)

In fact you might want to review your makefile and update the readme with it ;)

He Who Sheds Light,
T.
Title: Re: Issues with vutil.pas
Post by: konijn on March 14, 2007, 06:41
Instead of polluting your entire valkyrie forum,
I will just post my troubles on this thread ;)

So, it seems that Output.EnableColor; is nowhere to be found in vtoutput nor voutput,
except of course that it is mentioned in the comments ;)

Looking at the code it seems you assume always color support and support for @ strings,
which is a good design decision. Why would people not want to use goodness ?

( Can you tell I will make you update a lot of stuff ;)

He Who Sheds Light,
T.
Title: Re: Issues with vutil.pas
Post by: Kornel Kisielewicz on March 14, 2007, 14:19
Yeah I know that packaging of Valkyrie is quite behind :/. But I promise to adress this problem right after the 7DRL challenge!

As for EnableColor, yes, since the last version it is always enabled.