Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: Igor Savin on January 10, 2008, 15:15

Title: Problems with SVN Valkyrie
Post by: Igor Savin 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.
Title: Re: Problems with SVN Valkyrie
Post by: Kornel Kisielewicz 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.
Title: Re: Problems with SVN Valkyrie
Post by: Igor Savin 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
Title: Re: Problems with SVN Valkyrie
Post by: Kornel Kisielewicz on January 12, 2008, 19:51
What error does Menu.Create produce?
Title: Re: Problems with SVN Valkyrie
Post by: Igor Savin 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