Chaosforge Forum

  • March 28, 2024, 13:35
  • Welcome, Guest
Please login or register.



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

Author Topic: Problems with SVN Valkyrie  (Read 8344 times)

Igor Savin

  • Elder Chaos Guard
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 180
    • View Profile
Problems with SVN Valkyrie
« on: January 10, 2008, 15:15 »

Kornel, have you broken something fundamentally with the latest Valkyrie?

I cannot compile 0.8.5 Berserk with it.

\\\

procedure TInput.Load(INIFile : TINI; CommandReader : TTokenReader);
begin
  INICallbackProcedureReader := CommandReader;
  INIFile.QuerySection(@INICallbackProcedure); {this line outputs error}
end;

***
E:\Elwin\Yhacking\Pascal\Valk\vrltools.pas(383,47) Error: Incompatible type for arg no. 1: Got "<address of procedure(const ShortString,const ShortString);Register>", expected "<procedure variable type of procedure(const AnsiString,const AnsiString);Register>"
***

If we look into
vini.pas

<...>
procedure QuerySection(inicallback : TINIFileCallbackProcedure);
<..>
type TINIFileCallbackProcedure = procedure (const nkey,nvalue : string);
<...>


\\\

Okay, I comment all the stuff. Then:

bruichar.pas

Menu := TTextMenu.Create(67,12,1);

bruichar.pas(162,35) Error: Incompatible type for arg no. 3: Got "ShortInt", expected "<procedure variable type of procedure(Byte) of object;Register>"

\\\

And it goes on and on and on...

\\\

Why is it important to have BRL compiling in spite of all the changes (as in "keeping up-to-date")? Well, since I use BerserkRL as a reference material for applying Valkyrie; and if it doesn't work, my Valkyrion project is effectively stalled :). Not that it's high priority or anything (you have DoomRL 0.9.8.9 to take care of), but still it'd be nice if you could have a look at it some day.

p. s. Do you use jedi SDL for SDL?

p. p. s. Have you received my letter? It's not that I expect any answer, but usually you make some kind of a gesture indicating the letter was not lost in delivery stage.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Problems with SVN Valkyrie
« Reply #1 on: January 10, 2008, 23:06 »

Yeah, I broke some things -- I'll fix Berserk ASAP. 

I use Jedi-SDL.

I recieved your mail, I am just really overflooded with work, I'll reply ASAP too :).

P.S. It should compile now.
« Last Edit: January 10, 2008, 23:31 by Kornel Kisielewicz »
Logged
at your service,
Kornel Kisielewicz

Igor Savin

  • Elder Chaos Guard
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 180
    • View Profile
Re: Problems with SVN Valkyrie
« Reply #2 on: January 12, 2008, 04:18 »

Thanks, it works much better now; although I thought it's the Berserk which needs updating, not the Valkyrie (downdating?..).

Menu.Create still doesn't work, so I just replace Menus with my those of my own; then it compiles.


\I recieved your mail, I am just really overflooded with work, I'll reply ASAP too :).\

Aww, it's no big deal; glad it got there. I needed Valkyrie much more than a piece of conversation :-P
« Last Edit: January 12, 2008, 05:50 by Igor Savin »
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Problems with SVN Valkyrie
« Reply #3 on: January 12, 2008, 19:51 »

What error does Menu.Create produce?
Logged
at your service,
Kornel Kisielewicz

Igor Savin

  • Elder Chaos Guard
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 180
    • View Profile
Re: Problems with SVN Valkyrie
« Reply #4 on: January 14, 2008, 03:41 »

Menu := TTextMenu.Create(67,12,1);

\\\

bruichar.pas(162,35) Error: Incompatible type for arg no. 3: Got "ShortInt", expected "<procedure variable type of procedure(Byte) of object;Register>"

\\\

The same, as the one before. I'm using the latest (24) stable Lazarus, FPC 2.2.0
Logged
Pages: [1]