Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: beam on February 25, 2007, 17:45

Title: Compile Errors
Post by: beam on February 25, 2007, 17:45
Hey, I just want to say that Valkyrie is great, but I've been experiencing some problems with it.

Code: [Select]
Free Pascal Compiler version 2.0.4 [2006/08/21] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Win32 for i386
Compiling c:\fpc\202a8d~1.4\projects\sr\sr.pas
Compiling srmain.pas
Compiling srmap.pas
Compiling srentity.pas
srentity.pas(20,20) Error: There is no method in an ancestor class to be overridden: "constructor TEntity.Init"
srentity.pas(31,1) Fatal: There were 1 errors compiling module, stopping
srentity.pas(10,23) Fatal: Compilation aborted

I'm trying to do the SR tutorial, and that error always pops up. Any idea what I might be doing wrong?
Title: Re: Compile Errors
Post by: Kornel Kisielewicz on February 25, 2007, 18:07
The problem is that the sr tutorial was written under the 4.0 valkyrie version :/. I plan making a very updated and complete roguelike tutorial, but not before the 7DRL competition. Till then you may try to replace ALL "Init" names with "Create" (and by ALL I mean ALL). This MIGHT work.
Title: Re: Compile Errors
Post by: beam on February 26, 2007, 11:58
Thanks, that worked great. It fixed the valkyrie compile errors, but then it said that Freepascal couldn't find the gzio unit. I downloaded paszlib, but for some reason crc.pas generates all kinds of crazy errors. I'm sure I'll get it working though.
Title: Re: Compile Errors
Post by: Kornel Kisielewicz on February 26, 2007, 13:05
Hmm, you don't need paszlib anyway. You can try commenting off all gz stuff.
Title: Re: Compile Errors
Post by: konijn on March 04, 2007, 17:15
The problem is that the sr tutorial was written under the 4.0 valkyrie version :/. I plan making a very updated and complete roguelike tutorial, but not before the 7DRL competition.

You know, some people are considering Valkyrie for their 7drl attempt ;) You're not making it easier for us ;)

Cheers,
T.

PS : Evil kaneevil to force me to register ;)

Title: Re: Compile Errors
Post by: Kornel Kisielewicz on March 05, 2007, 07:37
The problem is that the sr tutorial was written under the 4.0 valkyrie version :/. I plan making a very updated and complete roguelike tutorial, but not before the 7DRL competition.

You know, some people are considering Valkyrie for their 7drl attempt ;) You're not making it easier for us ;)
Uh sorry I didn't think of that :/

Cheers,
T.

PS : Evil kaneevil to force me to register ;)
Yup, I'm inherently evil ^^
Title: Re: Compile Errors
Post by: konijn on March 14, 2007, 06:21
For completeness sake,

all instances of 'Done' must be replaced with 'Destroy'.

T.
Title: Re: Compile Errors
Post by: you on February 10, 2009, 09:11
Sample Roguelike Tutorial 3, fixed to fit Valkyrie 0.4.2.
http://izmoden.ucoz.ru/myfiles/sr-step-3.zip (http://izmoden.ucoz.ru/myfiles/sr-step-3.zip)
Title: Re: Compile Errors
Post by: Kornel Kisielewicz on February 10, 2009, 09:27
Wow, thanks!

Although 0.4.2 is pretty outdated :).

I hope to have better support, documentation and release info when 0.5.0 comes out.
Title: Re: Compile Errors
Post by: konijn on March 02, 2009, 20:19
Dude,

you said that 2 years ago !!!

fpc -Mobjfpc srmain.pas

Compiling vstream.pas
vstream.pas(160,9) Error: No matching implementation for interface method "IOutputStream.Write(const LongInt, Pointer);"
 found

T.
Title: Re: Compile Errors
Post by: Igor Savin on April 26, 2009, 09:46
Wow, thanks!

Although 0.4.2 is pretty outdated :).

I hope to have better support, documentation and release info when 0.5.0 comes out.

Is it coming... well... anytime?..
Title: Re: Compile Errors
Post by: Kornel Kisielewicz on April 27, 2009, 02:30
I hope so >^_^<