King Karolus Servant
Posts: 2154
Joined: 29 Aug 2007, 22:00
KaM Skill Level: Veteran
Location: In his dark thunderstormy castle
King Karolus Servant
Posts: 2154
Joined: 29 Aug 2007, 22:00
KaM Skill Level: Veteran
Location: In his dark thunderstormy castle
King Karolus Servant
Posts: 2154
Joined: 29 Aug 2007, 22:00
KaM Skill Level: Veteran
Location: In his dark thunderstormy castle
This is possible in KaM Remake dynamic scripts in r6720. You need to use some special record which is carried over to next missions scripts iirc.
Please see https://github.com/Kromster80/kam_remak ... paign-data
Lewin may add more details.
IIRC newer campaigns in KMR r6720 used that.
I'm sure someone tested it when we have implemented that. Maybe Lewin can shed some light on this.
I'm sure someone tested it when we have implemented that. Maybe Lewin can shed some light on this.
i had it planned for future missions, but as far as i know no campaign ever implemented this yet. i had a few pm's to and form lewin about this, but i cannot find it atm.I'm sure someone tested it when we have implemented that. Maybe Lewin can shed some light on this.
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
EDIT: Finally figured it out. I had i right a lot of times already it seems. Problem is that whenever you change pretty much anything, you have to close KaM and delete the Campaigns.dat-File in the Save-Folder...
When i do it as this, i get a crash while loading the map: (sometimes...)
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
Thanks for you reply, Lewin. I didn't think that it would make a difference to set the length of the array in this case. However, I finally got it to work with multidimensional arrays now. The code isnt that easy to read anymore, but it works like a charm now!
You meantioned that the campaign.dat should delete itself automaticly, however, it never did that for me. I was stuck in a loop of changing code for hours before i deleted it myself and suddenly it worked. Does KAM delete the whole campaign.dat or just the specific lines and information in it? And at what point does it do that?
You always have to initialise dynamic arrays, they begin with a size of zero.
Users browsing this forum: No registered users and 1 guest
Powered by phpBB® Forum Software © phpBB Group Designed by ST Software |