Page 4 of 13

PostPosted: 04 Jan 2007, 09:30
by Litude
Editing the unit.dat would allow used to extend the fights, which would make the game more realistic. We could also create almost new units by replacing an old one (doubt it's easy to add data), but we also need to know how the graphic storage system in Knights and Merchants works.

PostPosted: 04 Jan 2007, 10:20
by Merchator
Has free_sms_km decrypted the unit.dat , too?
Would help us much.
Ive looked at kroms' editor, and i hadnt tought, that it is soo difficult.
So i cannot finish it, sorry. I ll ask somebody, who know KAM and Delphi, maybe he can help me.


-----
For me it is most important to get the unit.dat files too
-----

PostPosted: 04 Jan 2007, 11:57
by Litude
No, free_sms_km decoded buildings.dat, missionx.dat and the graphic files.

PostPosted: 04 Jan 2007, 18:20
by olegasole
wow why did he now show them to the public?

PostPosted: 04 Jan 2007, 18:32
by Merchator
wow why did he now show them to the public?
??
Not yet.
But maybe he ll tell it to real_hotdog, so he can post them in this forum!

PostPosted: 04 Jan 2007, 22:26
by olegasole
ohhh okay merchantor!

PostPosted: 04 Jan 2007, 22:29
by Merchator
:D
Okay, im working on a little tool for decode .dat files.
U dont really need it, but it will speed up ur work on mission.dat files.
U can open, read and save them!

Here is a screenshot:
Image

And, what do u think?
Im not sure if i can finish this, because its very hard to do this for me :oops:
I try to finish it (if i could do it) before monday!

By the Way, thanks to Krom for his editor, and no i know, how to use XOR in Delphi^^

PostPosted: 05 Jan 2007, 00:00
by Merchator
By the way:
Ive figured out how to control the AI in KaM!!!!!
Victory^^
There are ONLY 2 more things in the whole mission.dat, that i dont understand:
!ADD_GOAL (or !ADD_LOST_GOAL)

and

!CLEAR_UP ( i know what this means, ive tried it out and it works, but i dunno all about this!)

So, if u want i can write down all u have to know. Would be no problem :D
See u!

Its late and im tired^^

PostPosted: 05 Jan 2007, 03:47
by olegasole
WOW NICE DECODER!!!! can i try it?

PostPosted: 05 Jan 2007, 03:49
by olegasole
also i think that !ADD_GOAL is the goal of the mission for example kill blue
and the!ADD_LOST_GOAL is what has to happen if u lose for example ur ally dies

hope this helps

PostPosted: 05 Jan 2007, 08:33
by Litude
Merchator, that tool could probably be more useful than you imagine. You might think that decoding the files are no trouble at all, but actually I'm quite sure that some people who don't know how to do it might not bother enough to try learning it. If that tool would exist almost everyone would be able to create their own missions.
Also it would be useful if you could write everything that you haven't told yet about the AI. :)

olegasole, we know what !ADD_GOAL does, but not what exactly the values do.

PostPosted: 05 Jan 2007, 10:13
by Merchator
WOW NICE DECODER!!!! can i try it?
No, not yet. I try hard to finish it ( again, its not easy )!
U can only decode the files in txt a save them. And there are bugs, too ...

So, wait please :D

PostPosted: 05 Jan 2007, 13:09
by Hitandrun
what values are possible?

PostPosted: 05 Jan 2007, 13:57
by nick
ok i just wanna say u guys arent alone with thos projects, we on dutch forums also working on it.
There is an decoder made by one of us. Place in KAM/Data/Mission
w;freewebs;com%1knightsandmerchants%1downloads%1MissionDecode.exe
**replace %1 with / and w with www and ; with .(im guest and im not allowed to give urls)
Syntax: in DOS! so execute, cmd, then go to Mission dir and typ: MissionDecode 'map'.dat 'map'.txt

It will decode the map in txt file
It also works: MissionDecode 'map'.txt 'map'.dat. To decode.

Also we found alot of things regarding the mission files explenation. But its in ducht. I maybe gonna translate it but pfff :p.
Link in dutch:

Nick

O yea, erm could one of u guys tell me what !ADD_GOAL 2 0 511 1200 does?? the others like !ADD_GOAL 2 1 0 2 i figured out but not that one

PostPosted: 05 Jan 2007, 14:24
by Merchator
Really?
U know, i dont know !ADD_GOAL . . . .
Could u explain it to me, please?
Im going to make a Programm with delphi for everybody. Without dos.
U could help me, please explain me !ADD_GOALD :D

The rest i know, of course! :)