Page 25 of 47
PostPosted: 21 May 2010, 02:52
by Lewin
Pretty sure that bug was fixed a few minor releases ago. What revision number are you using? If you just downloaded the 3rd demo it will be very old and buggy. The latest is r734 which you can download from
here. Install that over the 3rd demo and it will be patched.
Lewin.
PostPosted: 08 Jun 2010, 18:46
by The French
Can I translate KaM Remake economy demo in French?
PostPosted: 09 Jun 2010, 07:44
by Krom
Yes, you can!
KaM Remake has already one new translation - Slovak (yet unreleased though, due to lack of free time).
You should translate all texts and see if existing fonts have all required symbols.
Please contact Lewin for translation instructions

hmm
PostPosted: 10 Jun 2010, 18:15
by Kamfan2
Well, most of the members here on these foums, are leaving.
But, don't let your kam remake die! When i heard it, i was happy that you got the will to make it fully working!
Btw, are lewin still here on these forums?
Re: hmm
PostPosted: 11 Jun 2010, 01:39
by Lewin
Btw, are lewin still here on these forums?
Yes I am, I check this forum almost daily. I just haven't had as much to write about.
News for the Remake: I have done some work on soldiers attacking houses and it is going well. It works but there are still a few issues to fix. (right now they will not stop attacking the house until it dies, even if someone attacks them)
Krom has been working on the map editor, watch towers throwing rocks and some internal matenence/cleaning up.
Also we have had quite a few bugs reports by email, and I haven't got around to dealing with many of them. It is hard because some of the bugs have already been fixed and testing old saves requires reverting to an old copy of the code. (because the format is constantly changing)
The project went through a period of inactivity but is picking up again. I only have 1 assignment (for school) at the moment and tests are not until two weeks time. After that is holidays so I'll have even more time.
Also I just got a brand new laptop, so it will be even easier for me to do work on the project.
We are far from abandoning it, progress has just been a little slow for a few months. A new demo is still a little way off though, I'll bring you more news as it happens.
I hope this answers your questions and concerns.

Lewin.
PostPosted: 12 Jun 2010, 16:10
by Thunderwolf
Btw, are lewin still here on these forums?
LOL, how many are you expecting to see?
Everything about kam is kind of going slow.. If you'd check kam remake's svn you'd have known there's still stuff going on:
http://code.google.com/p/castlesand/
PostPosted: 22 Jun 2010, 22:31
by dontmailme
Yay!, love this game, always thought they should have taken the idea further.
So, in great anticipation I downloaded the latest exe from google, placed it in the KaM folder and it didn't work
Then found the complete economic demo package and it worked
So, next step... download the source and compile..... Yay, that works too, but the compiled code doesn't seem to like tiles1.tga from the source, but the compiled versions work fine.
So I'd like any suggestion as to why the tiles will not load, which leaves the landscape blank, on my Lazarus compiled version from svn....
Great work guys and if you need a helping hand then I'm very willing

PostPosted: 26 Jun 2010, 07:56
by Krom
Hi,
There's a certain hassle with versions, so let me explain it:
KaM Editor uses it's own Resource folder for tiles and some KaM folders for sprites and data and palettes.
KaM Remake has different Resources folder (with optimized textures) and largely relies on KaM data, but also needs some additional (nultilingual fonts, texts, etc..)
So here's how you should do it:
1. Download latest KaM Economy Demo package (~15mb rar file).
2. Unpack it to new folder
3. Download latest exe-only release from google-code and place it into the same folder.
4. Play the game.
*no need to put Remake into KaM folder whatsoever.
Also you can download full source-code of KaM Remake and compile it with Delphi6 or Lazarus (Delphi7 support available since few days as well). Compile it into exe and put it into KaM Remake folder to play, but notice, that we added some new functions which require some more files which are not available publicly yet (e.g. Slovak language support).
PostPosted: 26 Jun 2010, 17:11
by H.A.H.
Yep, I had already done that
But to be sure I just did the downloads again:-
Ran KaM_Remake.exe from the downloaded folder.... Fine!
Ran KaM_Remake_r734.exe from the exe download ..... Fine!
Downloaded source revision r857 and compile with Lazarus..... Error!
Error is "Unable to open file "c:\Kam Remake\Resource\Tiles1.tga"
So something different in the downloaded source to the downloaded exe's?
and if I update to latest revision 'Delphi 7' then it doesn't even compile anymore on Lazarus for me!
The Lazarus project file is not updated in svn for this revision, is that right ?
Also, I know it's already reported but the mouse cursor on vista is not transparent for most of the pointer sprites, but the troop direction 'flower' is perfect so somehting different about the other images.
Is it possible for me to edit the images myself to get it right? Not familiar with where the gfx are stored in KaM.... yet
Thanks for the help

PostPosted: 26 Jun 2010, 17:51
by Krom
Hi again,
Perhaps you can compile and run Lazarus build in debug mode (put all resource-data folders into project folder and run compiler to TGA loading line and see whats happening there), and see which exact line causes the error. As mentioned - current version is more that 100 commits newer - of course some things must have changed. Though I can't remember updating resource TGA files, so there could be some Lazarus specific issue there.
Since r857 there's a file KaM_Remake.inc - you must disable Delphi switch there {$DEFINE WDC}. Put a dot before dollar sign. Unless you do so - compiler will run both Delphi and FreePascal specific lines causing errors.
Direction selection flower is made different to usual cursors. Most of the cursors are made by replacing Windows system cursor and on most versions of WinXP is looks just fine. Don't know what wrong with Win7 or Vista - they just ignore transparecy bit and replace it with garbage %)
PostPosted: 26 Jun 2010, 19:58
by dontmailme
Hi
It fails here... in KM_TGATexture.pas line 181
{$IFDEF FPC}
InStream := TMemoryStream.Create;
InStream.LoadFromFile(FileName); <---- Errors Here!
GetMem(Comp, InStream.Size);
InStream.Read(Comp^, InStream.Size);
DestSize := SizeOf(TGAHeader);
i := uncompress(@TGAHeader, DestSize, Comp, InStream.Size);
{$ENDIF}
PostPosted: 27 Jun 2010, 08:48
by Krom
Hi,
I did tried it at home and it does fails at that line, don't know why

At work, with daily snaphot Lazarus, it worked just fine. Maybe thats the cause? Also at work I had path to TGA without whitespaces - "d:\2009\Delphi\castlesand\Resource\Tiles1.tga"
Maybe you can convert Tiles (uncompressed).gif to uncompressed TGA and name it Tiles1.tfa. That could work.
PostPosted: 27 Jun 2010, 13:33
by dontmailme
I downloaded latest daily lazarus and doesn't compile at all..... What version of Lazarus + Free Pascal should I use ?
PostPosted: 28 Jun 2010, 04:19
by Krom
Ok, let's stick to latest available Lazarus download (I have it at home). It works fine except that buggy line you named. Try moving Remake into a folder without whitespaces in path. maybe that helps...
PostPosted: 28 Jun 2010, 14:04
by dontmailme
Yep, good idea
I reinstalled latest lazarus DL and back to same error.....
I copied the Tiles1.tga from the Kam Editor\Resources folder into Resources and the uncompressed file works fine.
Currently using r857 as delphi 7 conversion brings new errors for me!
Thanks
