Chaosforge Forum

  • October 15, 2024, 23:24
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Issues with vutil.pas  (Read 7629 times)

konijn

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 17
    • View Profile
Issues with vutil.pas
« 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.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4576
    • View Profile
    • http://chaosforge.org/
Re: Issues with vutil.pas
« Reply #1 on: March 13, 2007, 15:54 »

Compile with the -Sc switch (enabling C style expressions "+=" "-=" "/=" "*="), or turn it on in the ide :).
« Last Edit: March 14, 2007, 08:56 by Kornel Kisielewicz »
Logged
at your service,
Kornel Kisielewicz

Aerton

  • Elder Chaos Guard
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
    • View Profile
Re: Issues with vutil.pas
« Reply #2 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...
Logged

konijn

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 17
    • View Profile
Re: Issues with vutil.pas
« Reply #3 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.
Logged

konijn

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 17
    • View Profile
Re: Issues with vutil.pas
« Reply #4 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.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4576
    • View Profile
    • http://chaosforge.org/
Re: Issues with vutil.pas
« Reply #5 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.
Logged
at your service,
Kornel Kisielewicz
Pages: [1]