PDA

View Full Version : Medals modding


pavned
04-16-2010, 02:00 PM
I'd love to be able to mod the medals, not just the bonus it gives but creating a whole new one. I just can't seem to find where all the variables are stored.

The first one is I'd love to create is the Archer General where you get bonus for archer units when you register kill with an archer unit. I think it could be easily done if I could look at how they implement the trapping medal one. It became just a matter of replacing a register kill from a trap by a register kill from bowman, elf, hunter, etc.

Plus I can'T seem to find the source file for all the text for the medals. I found the text files for the item in loc_ses.kfs but there'S no text for medals in it. One file, eng_item list the medal but there's no description in it compare to the item.

N3MES1S
04-16-2010, 07:17 PM
Hmm, tried on Arena.lua?? I cant check it now, but u should try that.

zini4_tha_grunt
04-17-2010, 02:24 AM
seek for medals.txt
i guesss the medal types for each class are insripted in hero.txt

pavned
04-17-2010, 04:45 PM
I'm aware about medal.txr and hero.txt doesn't manage the medal thing, it'S all in the medal.txt file.

I'm looking for the file where the variable killed_by_trap is store so I can modify it and replace trap by archer.

I look trough arena and did't see anything corrsponding to that

N3MES1S
04-19-2010, 05:37 PM
I didnt find anything, im searching for some way to increase the ammount of units respawned on the shops, but nothing. As i see, there are some things that cant be modified... O_o

pavned
04-19-2010, 05:41 PM
yeah, looks like sone thing are hardcoded. But still, find it hard to believe that something like killed_by_trap is hardcoded. If I could see how they coded it, could easily make a script to go with my new medal.

Same for new units you create. Would love to make sure they spawn at one place. Now I checked some game I started and they might not spawn at all!

saroumana
04-19-2010, 09:39 PM
I didnt find anything, im searching for some way to increase the ammount of units respawned on the shops, but nothing. As i see, there are some things that cant be modified... O_o

Nah ,you can change it. I fact i have even make a mod toi change unit generate in shop. But it's in coded file, so you need to use a soft to decode them.
I'll give you the link if you're interested.

zini4_tha_grunt
04-20-2010, 05:21 AM
everithing could be done easier if you learn russian.

N3MES1S
04-20-2010, 08:22 AM
everithing could be done easier if you learn russian.

I know, xD. But the thing is, everything could be done easier if the russian forums were spanish forums.. ;) , enough i can speak spanish and english, russian too will be awesome xD.

zini4_tha_grunt
04-20-2010, 09:48 AM
i wonder why russian modmakers usually don't have language problems and continue to create pretty good mods for various games? we can't translate 10 thousand posts from our forum into english.

saroumana
04-20-2010, 05:57 PM
i wonder why russian modmakers usually don't have language problems and continue to create pretty good mods for various games? we can't translate 10 thousand posts from our forum into english.

Be honest, russian modmaker know russian and english ,like we know our native language and english ;)

Russian forum is interesting, but google traduction is pretty atrocious. To bad, with more info and may be partnership, i'm sure we'll have lot lot more mod actually.

zini4_tha_grunt
04-20-2010, 06:05 PM
i am afraid of useless of that. game hs been released long time ago and there no such a heed in new mods. and even in already created.

pavned
04-20-2010, 06:48 PM
Nah ,you can change it. I fact i have even make a mod toi change unit generate in shop. But it's in coded file, so you need to use a soft to decode them.
I'll give you the link if you're interested.

I'd like that

pavned
04-20-2010, 07:13 PM
you didn'T happen to stumble on part of the code where it explain how they are treating the killed_by_trap variabales?

By the way, just took a look at the army of light files. Wow, they did a great job with the conversion script. Just not sure how the script is called when the sword is being "use".

Would love to use it for my game. Just a matter of changing the unit "string" in the successors_of_the_light.lua file

I think the file I got is bug or something I got that for the sword:

sword_of_the_successors_of_the_light {
category=o
image=sword_of_the_successors_of_the_light.png
hint_config=object_item
label=itm_sword_of_the_successors_of_the_light_nam e
hint=itm_sword_of_the_successors_of_the_light_hint
information_label=itm_sword_of_the_successors_of_t he_light_info
maphint=
mapinfo=
price=10
maxcount=1
level=3
race=human
use {}
propbits=usable,rare
params {
use=1
}
usec=020000000600000053435249505401000000030000000 2000000666E0D000000616F6C5F636F6E646974696F6E
actions {
onuse=70000004D425F53484F5705000000020000000500000 0030000000400000004000000050000006C6162656C1200000 067006C006F0062007300740072005F0031003900370032003 800320031003200350030000300000066727A0300000003000 0006C756E050000002473656C66030000006E7965E80300000 30000006E6E6FE9030000
custom0=E000000455845435554455F5343524950540200000 0030000000300000005000000666E616D6507000000616F6C5 F7965730300000070617200000000
custom1=E000000455845435554455F5343524950540200000 0030000000300000005000000666E616D6506000000616F6C5 F6E6F0300000070617200000000
@=02000000000000000100000001000000020000000
}
}

not sure about all the characters after actions!

saroumana
04-20-2010, 07:17 PM
You can Download the file here : http://forum.1cpublishing.eu/attachment.php?attachmentid=1641&d=1260499436

And refer to this post : http://forum.1cpublishing.eu/showthread.php?t=11585

And i'm sorry,i haven't found where trap are managed :(

i am afraid of useless of that. game hs been released long time ago and there no such a heed in new mods. and even in already created.

Well AP is released since some time now in Russia, but for other country it's not so long. And it's a such good game that additionnal new mod can't never be enough.

zini4_tha_grunt
04-20-2010, 07:59 PM
not sure about all the characters after actions!

these characters are encoded in hex script.

it can be recoded with this tool (http://alexander.sannybuilder.com/Files/KINGS_BOUNTY/KB_DB_EDIT.rar).

btw - i've modified the source code for AoL from AoD mod. Lestas have made a huge work. anyway thx, you noticed about that.

Well AP is released since some time now in Russia, but for other country it's not so long. And it's a such good game that additionnal new mod can't never be enough.
well then. ask me if help needed - i'll try to satisfy your request.

and btw, i've done few mods that aloow units gain expirirence for battles. if anyone interested, i could try to find some freetime to translate them and to share it with everyone.

P.S. i still apologise for my english.
if anyone can give me loc_ses.kfs file for english-languaged version of AP, i could faster translate my mods for you.

N3MES1S
04-20-2010, 09:27 PM
Hey, here is the english version of the loc_ses.kfs, as u requested. I ve been looking at your mods on the russian forum and there are some very interesting, but on some of em, the ones that are unit mods, logically they are on pure russian, so are useless to me (a shame cuz i am curious about some of em).

N3MES1S
04-21-2010, 11:43 AM
Hey guys i have a question i cant answer for myself -.- how can i do to make a unit only available on summoning, like avenging spirits?? i mean, dont want the unit to be available on shops, or like a fighting troop, only as a summoned unit. Any idea???

zini4_tha_grunt
04-21-2010, 03:13 PM
you have to add it's name into ignorecp.txt file.

N3MES1S
04-22-2010, 05:39 PM
you have to add it's name into ignorecp.txt file.

thx ;), everyday i learn something new -.-

edit: well, forget it. It didnt work, king harl's still appearing on shops for buying sigh.. do i need to ad the ignorecp.txt file on my own mod for it to working? or only adding the unit on the ignorecp.txt file on the kbmaster mod is enough?