Map Database  •  FAQ  •  RSS  •  Login

Kam Source??? Probably not

<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 02:11

Kam Source??? Probably not

I have been playing around with houses.dat recently and i have new information to post about ; building grid's and were they are, how they work and B value for all buildings
  Code:
ALWAYS HAVE A BACKUP!!! ---------------------------- Legend:                    | != visible square on plan  | x= usage (un-use-able)     | E= Entrance                | .= Space                   | R= Resource (IRON)(GOLD)   | A= A VALUE                 | B= B VALUE                 | -------------------------------------------------------------------------------- MASTER BUILDING GRID LAYOUT: ALL GRID VALUES WILL BE ON THE BOTTOM OF THIS FILE|                                                       --------------------------   !!!!!!                                              |   !!!!!!                                              |   !!!!!!  = 6X6 LENGTH * WIDTH = MAX BUILDING SIZE    |   !!!!!!                          UNLESS HEX ADDED    |   !!!!!!                                              |   !!!!!!                                              |                                                       | ------------------------------------------------------- STOREAGEHOUSE, + EXPLINATIONS:| ALL VALLUES ARE IN HEX|------- ----------------------- EACH LINE IN THE BUILDING GRID IS 12 HEX CHARCTERS SEPERATED BY 8 HEX VALUES OF 0   xxxxx.      = 080C 0C0C 0800   x!!!x.      = 0C0B 1B1B 0C00   x!!!x.      = 0C0B 1B1B 0C00   x!E!x.      = 0C0B 1B1B 0C00   xxxxx.      = 080C 1C1C 0800                           ---------- FIRST GRID LINE LOCATED: | 00005666 |                           ----------                   ---------- A VALUE LOCATED: | 000056B4 |                   ----------                  ---------- B VALUE LOCATED:| 0000572B |                  ---------- ----------------------------------------------------------------------------------------- A\B VALUES| ----------- ------ NOTE:|--------------------------------------------------------------------------------- IF AN A VALUE IS CHANGED, EX. STOREAGE HOUSE: 0605 TO 322D (50W 45S) THE B VALUE CAN BE| DETERMINED BY SAVING YOUR CHANGES AND CONSTRUCTING THE BUILDING IN KAM|---------------| ----------------------------------------------------------------------- A VALUE=  THE NUMBER OF WOOD\STONES NEEDED THE CONSTRUCT A BUILDING        B VALUE=  THE "TOTAL HP" OF A BUILDING OR DURATION, IF A BUILDING IS ON FIRE THIS VALUE WILL NOT CHANGE.   (W)(S) (WOOD)(STONES)   |----| A= 0605   |----|   |----| B= 2602   |----|   WICH IS = TO 550 DEC HOW? ISN'T 226 HEX 550 DEC? IN HOUSES.DAT THAT VALUE 226 IS NOT READ THE SAME WAY WE READ IT SO IT MUST BE FLIPED TO 2602 [226 = 26 02] ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- -------- 0 SAWMILL| --------   xxxxxx      = 080C 0C0C 0C08   x!!!!x      = 0C0B 0B1B 1B0C   x!E!!x      = 0C0B 0B1B 1B0C   xxxxxx      = 080C 0C1C 1C08    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00000DE8 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00000E2C |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00000EA3 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ------------- 1 Iron Smithy| -------------   xxxxxx      = 080C 0C0C 0C08   x!!!!x      = 0C0B 1B1B 1B0C   x!!E!x      = 0C0B 1B1B 1B0C   xxxxxx      = 080C 0C0C 0C08    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00001480 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000014C4 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 0000153B |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- --------------- 2 Weapon Smithy| ---------------   xxxxxx      = 080C 0C0C 0C08   x!!!!x      = 0C0B 1B1B 1B0C   x!E!!x      = 0C0B 1B1B 1B0C   xxxxxx      = 080C 0C1C 0C08    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00001B18 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00001B5C |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00001BD3 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ---------- 3 CoalMine| ----------   xxxxx.      = 080C 0C0C 0800   x!!!x.      = 0C0B 1B0B 0C00   x!E!x.      = 0C1B 1B1B 0C00   xxxxx.      = 080C 0C0C 0800   ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 000021B0 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000021F4 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 0000226B |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0302 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | FA00 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------- 4 GOLD MINE| ----------- MORE INFO NEEDED   ......      = 0008 0808 0800   ..RE..      = 000C 1B1B 1C00   ......      = 0008 0C1C 0800   ......      = NOTHING    ......      = NOTHING = STILL HAVENT COMPLETELY FIGURED OUT HOW THIS PLAN WORKS _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00002EEA |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00002F24 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00002F9B |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0302 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | FA00 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------- 5 IRON MINE| ----------- MORE INFO NEEDED   ......      = 0008 0808 0808   .RER..      = 0C0B 1B1B 1B0C   ......      = 0008 0808 0808   ......      = NOTHING    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00002852 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 0000288C |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00002903 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0302 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | FA00 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ---------------- 5 FISHERMANS HUT| ----------------   xxxxx.      = 0008 0C0C 0800   x!!xx.      = 000C 0B1B 1C08   xE!!x.      = 000C 1B1B 1B0C   xxxxx.      = 080C 1C1C 0800    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00003578 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000035BC |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00003633 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- -------- 7 Bakery| --------   xxxxx.      = 0008 0C0C 0C08   x!!!x.      = 0C0B 0B0B 0B0C   x!!!x.      = 000C 0B1B 1B0C   x!!Ex.      = 000C 1B1B 1B1C    xxxxx.      = 0008 0C1C 0C08 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00003C06 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00003C54 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00003CCB |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ------ 8 Farm| ------   xxxxxx      = 080C 0C0C 0C08   x!!!!x      = 0C0B 0B0B 0B0C   x!!!!x      = 0C0B 1B1B 1B0C   x!E!!x      = 0C0B 1B1B 1B0C    xxxxxx      = 080C 1C1C 1C08 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 0000429E |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000042EC |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00004363 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ------------- 9 WOOD CUTTER| -------------   xxxxx.      = 080C 0C0C 0800   x!!!x.      = 0C0B 1B1B 0C00   x!!Ex.      = 0C0B 1B1B 0C00   xxxxx.      = 080C 0C0C 0800    ......      = NOTHING _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00004940 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00004984 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 000049FB |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0302 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | FA00 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ---------------- 10 ARMOUR SMITHY| ----------------   .xxxx.      = 0008 0C0C 0800   xx!!xx      = 080C 0B0B 0C08   x!!!!x      = 0C0B 0B1B 1B0C   x!E!!x      = 0C0B 1B1B 1B0C    xxxxxx      = 080C 1C1C 1C08 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00004FCE |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 0000501C |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00005093 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0403 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 5E01 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ------------- 11 STOREHOUSE| -------------   xxxxx.      = 080C 0C0C 0800   x!!!x.      = 0C0B 1B1B 0C00   x!!!x.      = 0C0B 1B1B 0C00   x!E!x.      = 0C0B 1B1B 0C00   xxxxx.      = 080C 1C1C 0800 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00005666 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000056B4 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 0000572B |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0605 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 2602 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ---------- 12 Stables| ----------   xxxxxx      = 080C 0C0C 0C08   x!!!!x      = 0C0B 0B1B 1B0C   x!!!!x      = 0C1B 1B1B 1B0C   x!!E!x      = 0C1B 1B1B 1B0C    xxxxxx      = 080C 0C0C 0C08 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00005CFE |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 00005D4C |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 00005DC3 |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0605 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 2602 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- --------- 13 SCHOOL| ---------   xxxxx.      = 080C 0C0C 0800   x!!!x.      = 0C0B 1B1B 0C00   x!!!x.      = 0C1B 1B1B 1C00   x!E!x.      = 0C1B 1B1B 1C00    xxxxx.      = 080C 0C0C 0800 _____________________________________________________________                           ----------                         | FIRST GRID LINE LOCATED: | 00006396 |                        |                           ----------                         |                                                              |                   ----------                                 | A VALUE LOCATED: | 000063E4 |                                |                   ----------                                 |                                                              |                  ----------                                  | B VALUE LOCATED:| 0000645B |                                 |                  ----------                                  |                                                              |           ------                                             | A VALUE: | 0605 |                                            |           ------                                             |                                                              |           ------                                             | B VALUE: | 2602 |                                            |           ------                                             | _____________________________________________________________| ----------------------------------------------------------------------------------------- ------
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 02:12

Kam Source??? Probably not

Info:

Hello i am new to this forum but not to knights and merchants, everyone seamed so nice over here that i decide to join up.

I found something extremely weird
It's 73 pages long of KM_TPR.EXE in a txt format (it may take a long time to open) and most of if is coded but some is in readable English.

If opened in Microsoft Word it is full of mostly squares for text (but it has column breaks in it making it some what organized)

In notepad No squares but text sticks out better

It seams to show almost all the error messages in readable english but most everything else that is kam related in coded

Any\ideas\theory's\ explanations Please post

ohh yah and if theres any copyright info in it tell me and all this will be removed.

Download Link Above
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 02:13

Kam Source??? Probably not

Strings?

something interesting:
  Code:
 004BC062  53                             db   53h;   'S'  004BC063  45                             db   45h;   'E'  004BC064  54                             db   54h;   'T'  004BC065  5F                             db   5Fh;   '_'  004BC066  48                             db   48h;   'H'  004BC067  55                             db   55h;   'U'  004BC068  4D                             db   4Dh;   'M'  004BC069  41                             db   41h;   'A'  004BC06A  4E                             db   4Eh;   'N'  004BC06B  5F                             db   5Fh;   '_'  004BC06C  50                             db   50h;   'P'  004BC06D  4C                             db   4Ch;   'L'  004BC06E  41                             db   41h;   'A'  004BC06F  59                             db   59h;   'Y'  004BC070  45                             db   45h;   'E'  004BC071  52                             db   52h;   'R'[/quote] Level end? [code]  004C4324                           SSZ004C4324_VIDEO:  004C4324  564944454F00                    db   'VIDEO',0  004C43EC                           SSZ004C43EC_data_misc_setup_lib:  004C43EC  646174615C6D6973635C+           db   'data\misc\setup.lib',0  004C4400                           SSZ004C4400_lost:  004C4400  6C6F737400                      db   'lost',0  004C4405  000000                          Align   4  004C4408                           SSZ004C4408_victory:  004C4408  766963746F727900                db   'victory',0  004C4410                           L004C4410:  004C4410  4D                             db   4Dh;   'M'  004C4411  32                             db   32h;   '2'  004C4412  00                             db   00h;  004C4413  00                             db   00h;  004C4414                           L004C4414:  004C4414  4D                             db   4Dh;   'M'  004C4415  31                             db   31h;   '1'  004C4416  00                             db   00h;  004C4417  00                             db   00h;  004C4418                           L004C4418:  004C4418  4D                             db   4Dh;   'M'  004C4419  35                             db   35h;   '5'  004C441A  00                             db   00h;  004C441B  00                             db   00h;  004C441C                           L004C441C:  004C441C  4D                             db   4Dh;   'M'  004C441D  36                             db   36h;   '6'  004C441E  00                             db   00h;  004C441F  00                             db   00h;  004C4420                           L004C4420:  004C4420  4D                             db   4Dh;   'M'  004C4421  32                             db   32h;   '2'  004C4422  30                             db   30h;   '0'  004C4423  00                             db   00h;[/quote]
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 02:17

Kam Source??? Probably not

Settings Strings?
  Code:
 004C37A6                           SSZ004C37A6_NoName:  004C37A6  4E6F4E616D6500                  db   'NoName',0  004C37D2                           SSZ004C37D2_Unknown:  004C37D2  556E6B6E6F776E00                db   'Unknown',0  004C38E2                           SSZ004C38E2_SOUND_VOLUME:  004C38E2  534F554E445F564F4C55+           db   'SOUND_VOLUME',0  004C39AC                           SSZ004C39AC_MIDI_VOLUME:  004C39AC  4D4944495F564F4C554D+           db   'MIDI_VOLUME',0  004C3A76                           SSZ004C3A76_CD_VOLUME:  004C3A76  43445F564F4C554D4500            db   'CD_VOLUME',0  004C3B40                           SSZ004C3B40_MUSIC_TYPE:  004C3B40  4D555349435F54595045+           db   'MUSIC_TYPE',0  004C3CD4                           SSZ004C3CD4_PLAYER_NAME:  004C3CD4  504C415945525F4E414D+           db   'PLAYER_NAME',0  004C3D9E                           SSZ004C3D9E_NG_PLAYER_NAME:  004C3D9E  4E475F504C415945525F+           db   'NG_PLAYER_NAME',0  004C3E68                           SSZ004C3E68_PALETTE:  004C3E68  50414C4554544500                db   'PALETTE',0  004C3F32                           SSZ004C3F32_MOUSE_SPEED:  004C3F32  4D4F5553455F53504545+           db   'MOUSE_SPEED',0  004C3FFC                           SSZ004C3FFC_AUTOSAVE:  004C3FFC  4155544F5341564500              db   'AUTOSAVE',0  004C40C6                           SSZ004C40C6_SCROLLING:  004C40C6  5343524F4C4C494E4700            db   'SCROLLING',0  004C4190                           SSZ004C4190_RESOLUTION:  004C4190  5245534F4C5554494F4E+           db   'RESOLUTION',0  004C425A                           SSZ004C425A_LANGUAGE:  004C425A  4C414E475541474500              db   'LANGUAGE',0 [/quote] Any thoughts? (Old Post) [size=59]Basic Settings: as found in the .txt NoName Unknown SOUND_VOLUME MIDI_VOLUME CD_VOLUME MUSIC_TYPE SCREEN_MODE PLAYER_NAME NG_PLAYER_NAME PALETTE MOUSE_SPEED AUTOSAVE SCROLLING RESOLUTION LANGUAGE VIDEO[/size]
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 02:41

Kam Source??? Probably not

.dats: All Available commands (as found in the .txt)


Edit:
a easy to read version
  Code:
SET_HUMAN_PLAYER SET_CURR_PLAYER SET_MAX_PLAYER SET_AI_PLAYER SET_MAP_COLOR SET_NEW_REMAP SET_TACTIC SET_STOCK SET_HOUSE SET_HOUSE_DAMAGE SET_FIELD SET_WINEFIELD SET_STREET SET_UNIT SET_UNIT_BY_STOCK ------------------------------------------------------- ------------------------------------------------------- SET_GROUP SET_GROUP_FOOD SEND_GROUP ATTACK_POSITION RELEASE_ALL_HOUSES RELEASE_HOUSE BLOCK_HOUSE SET_MAP CLEAR_UP CENTER_SCREEN ADD_WARE ADD_WARE_TO_SECOND ADD_WARE_TO_ALL ADD_WEAPON ------------------------------------------------------- ------------------------------------------------------- SET_AI_START_POSITION SET_AI_DEFENSE SET_AI_NO_BUILD SET_AI_CHARACTER ! TOWN_DEFENSE " RECRUTS # CONSTRUCTORS $ WORKER_FACTOR % ATTACK_FACTOR & TROUP_PARAM ' RECRUT_COUNT ( MAX_SOLDIER ) SET_AI_ATTACK * TARGET + TYPE , TOTAL_AMOUNT -TROUP_AMOUNT .REMOVE /MISC 0 RANGE 1 COUNTER 2 POSITION 3 TAKEALL 4 COPY_AI_ATTACK 5 ADD_ATTACK_MAIN_POS 6 ADD_ATTACK_SUB_POS ------------------------------------------------------- ------------------------------------------------------- 7 ENABLE_PLAYER 8 ADD_GOAL 9 ADD_LOST_GOAL : SET_MULTIPLAYER ; DISTRIBUTE_MULTIPLAYER_POSITIONS <SET_ALLIANCE> MANY_WARES ? VALID_PLAYER @ IF A ENDIf B end [/quote]
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 21 Jan 2008, 06:19

This is VERY interesting! I haven't got any knowlegde at all about this, but in your 4th post I see scripting commands, and some of them are new to me, like:

ADD_ATTACK_MAIN_POS
ADD_ATTACK_SUB_POS
REMOVE
MISC
RANGE
COUNTER
ATTACK_FACTOR

The problem is, these commands are no full commands... I think that some parts are missing...
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 21 Jan 2008, 07:39

It is interesting. You can do this with all EXEs. However, you could not edit this then save it again as it is written in machine code, those are just text strings used throughout the game. If you changed the position is may muck it up. When you make a program (in C++ or whatever) then it saves it to an exe. However, you need the real source to edit it, the exe is impossible to recode it with.
I think most of the commands you mentioned are from AI attacks or other AI settings, and some of them may work, just they never used them in game.
COUNTER : we know what that does; isn't that how much time till the AI attack?
@link: Welcome to the forum. It is a fun place here. Nice discovery.
Lewin.
<<

Merchator

Sword Fighter

Posts: 336

Joined: 27 Dec 2006, 23:00

Location: Germany

Post 21 Jan 2008, 11:51

Wow, nice! It's very confusing, but it IS interesting. Maybe there are in things we really need.... i don't know.
Very good so far!
As The Dark Lord already said, there are commands in which are unkown (yet). Maybe it's possible to use them?

It's something like the source, but as you said, i isn't.
The KaM source would be interesting, too :D
Yea ... :wink:
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 18:09

Hi thanks for the welcome:
As lewin said the COUNTER Command is a known part of a AI attack.

But i think that these other ones are new, also i added what i think they might do

(!)ADD_ATTACK_MAIN_POS (First X Y POSITION )
(!)ADD_ATTACK_SUB_POS (Secondary attack to next X Y POSITION during first attack)

. REMOVE (???)
\ MISC (???)

% ATTACK_FACTOR (SET_AI_CHARACTER ATTACK_FACTOR % maybe the command)

IS (!SET_AI_CHARACTER (#) a known command? I started to test some of these. My theory is that it will change certain aspects of AI_BUILD

Ex. SET_AI_BUILD Will make one all buildings except the Coal Mine Gold Mine Iron Mine Quarry and Vehicles Workshop

EX. Builds More then one School or watchtower or even a storage house

I think that these are simply the attack types;

0 RANGE (being a range of all the attack types)(forever)
1 COUNTER (waiting a certain time before attack)
2 POSITION (X Y Position)
3 TAKEALL

(TAKEALL) if my thoughts about those other commands are correct how come TAKEALL is attack type 2 not 3
<<

harold

Knight

Posts: 562

Joined: 19 Nov 2007, 23:00

Post 21 Jan 2008, 18:43

Note that it is not impossible to change the exe.
If you disassemble it, make changes, and re-assemble it, then you will have changed it. If you do it carefully, it might even still work
Which isn't really all that useful, there is just too much assembly, making useful changes would require knowledge of how the program is build up, and we don't really have that. At least, not as for as I know..

those scripting commands are interesting, but seeing as those "new" ones weren't used in the original missions some could be broken (there wouldn't have been any need to fix them).

so, let's try them and find out how they work

(looks like I'll have to update the mission-schema of TKE.. after all, it must support at least all old functionality)
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 19:07

Yes i agree it is not impossible to change the exe.
But it seams that it would prove to be very difficult.
If we (Kam Community) can do it then there's no telling what kinds of things that can be done to kam.

As for the commands it that you could easily be right but theres no harm in trying, the .REMOVE, \ MISC command dose'nt seam to make any scene to me, they may be broken but very little testing has been done.
Although it would be nice to have a working attack main pos and attack sub pos.

I wish you luck with TKE
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 21 Jan 2008, 19:36

As lewin said the COUNTER Command is a known part of a AI attack.
You're right, I should have known that. :oops:
% ATTACK_FACTOR (SET_AI_CHARACTER ATTACK_FACTOR % maybe the command)
May be possible...
IS (!SET_AI_CHARACTER (#) a known command? I started to test some of these. My theory is that it will change certain aspects of AI_BUILD
Hehe, there are quite a lot of known !SET_AI_CHARACTER commands, like:
!SET_AI_CHARACTER TROUP_PARAM
!SET_AI_CHARACTER TROUP_PARAM
!SET_AI_CHARACTER TROUP_PARAM
!SET_AI_CHARACTER TROUP_PARAM
!SET_AI_CHARACTER TOWN_DEFENSE
!SET_AI_CHARACTER RECRUTS
!SET_AI_CHARACTER WORKER_FACTOR
!SET_AI_CHARACTER CONSTRUCTORS
!SET_AI_CHARACTER MAX_SOLDIER
I think that these are simply the attack types;

0 RANGE (being a range of all the attack types)(forever)
1 COUNTER (waiting a certain time before attack)
2 POSITION (X Y Position)
3 TAKEALL

(TAKEALL) if my thoughts about those other commands are correct how come TAKEALL is attack type 2 not 3
Nah, I doubt it. In fact, I know it is wrong. :wink:
There are three attack types:
-!SET_AI_ATTACK TYPE 0
-!SET_AI_ATTACK TYPE 1
-!SET_AI_ATTACK TYPE 2
Type 0 has nothing to with range. I think you are mixing things now. Those things you mentioned could be the target of an attack type.

I will try some of these things when I continue scripting a mission.
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 21 Jan 2008, 20:04

Your right i may be jumping ahead of my self.

But i noticed that it is all in the order
  Code:
SET_AI_START_POSITION SET_AI_DEFENSE SET_AI_NO_BUILD SET_AI_CHARACTER-----------------> (ROOT COMMAND)                               ! TOWN_DEFENSE ----------> (EXTENSIONS)                               " RECRUTS                       Value--->  # CONSTRUCTORS            ( A Real Number)   $ WORKER_FACTOR                               % ATTACK_FACTOR                               & TROUP_PARAM                               ' RECRUT_COUNT                               ( MAX_SOLDIER ) SET_AI_ATTACK--------------> (ROOT COMMAND)                           * TARGET ----> (EXTENSIONS)                           + TYPE                           , TOTAL_AMOUNT                           - TROUP_AMOUNT                           . REMOVE                 (Maybe it's remove so that you replace some of the misc values with it) but its more likely to be SET_AI_ATTACK REMOVE[/quote] /MISC--->/MISCELLANEOUS (meaning various values including targets ect) 0 RANGE 1 COUNTER 2 POSITION 3 TAKEALL 4 COPY_AI_ATTACK 5 ADD_ATTACK_MAIN_POS 6 ADD_ATTACK_SUB_POS
<<

link

Woodcutter

Posts: 16

Joined: 20 Jan 2008, 23:00

Post 22 Jan 2008, 02:23

Others: Some save stuff and gfx stuff
  Code:
 004C182C                           SSZ004C182C_data_save_temp_sav:  004C182C  646174615C736176655C+           db   'data\save\temp.sav',0  004C183F  00                              Align   4  004C1840                           SSZ004C1840_data_save_gamem_3_3d_sav:  004C1840  646174615C736176655C+           db   'data\save\gamem%3.3d.sav',0  004C1859  000000                          Align   4  004C185C                           SSZ004C185C_data_save_game_3_3d_sav:  004C185C  646174615C736176655C+           db   'data\save\game%3.3d.sav',0  004C1874                           SSZ004C1874_data_save_game_3_3d_sav:  004C1874  646174615C736176655C+           db   'data\save\game%3.3d.sav',0 004C2B04                           SSZ004C2B04_data_gfx_setup_lbm:  004C2B04  646174615C6766785C73+           db   'data\gfx\setup.lbm',0  004C2B17  00                              Align   4  004C2B18                           SSZ004C2B18_data_gfx_remap_dat:  004C2B18  646174615C6766785C72+           db   'data\gfx\remap.dat',0  004C2B2B  00                              Align   4  004C2B2C                           SSZ004C2B2C_Add_on_mission_no__d:  004C2B2C  4164642D6F6E206D6973+           db   'Add-on mission no.%d',0  004C2B41  000000                          Align   4  004C2B5C                           SSZ004C2B5C_data_gfx_setup2_bbm:  004C2B5C  646174615C6766785C73+           db   'data\gfx\setup2.bbm',0  004C2B70                           SSZ004C2B70_data_gfx_remap2_dat:  004C2B70  646174615C6766785C72+           db   'data\gfx\remap2.dat',0  004C2B84                           SSZ004C2B84_data_gfx_setup2_bbm:  004C2B84  646174615C6766785C73+           db   'data\gfx\setup2.bbm',0  004C2B98                           SSZ004C2B98_data_gfx_remap2_dat:  004C2B98  646174615C6766785C72+           db   'data\gfx\remap2.dat',0  004C188C                           SSZ004C188C_shot__3d_pcx:  004C188C  73686F74252E33642E70+           db   'shot%.3d.pcx',0[/quote] Old post removed completely
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 22 Jan 2008, 06:49

You are completely wrong about !SET_AI_DEFENSE. !SET_AI_DEFENSE is used multiple times in a script, and indicates where and how a group of soldiers will defend.

For example:
!SET_AI_DEFENSE 75 95 6 2 30 0
At X=75, Y=95, a group of archers (2) will defend in a radius of 30, looking to the west (6). They are very improtant (0).

For more information:
http://kam.vanmeijeren.nl/forum/viewtopic.php?f=8&t=335
Download the info about the script (I guess the English version will be the best for you :wink:).

Return to “Other Creations”

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests