kaoz
General
inter faesces et urinam nascimur
Posts: 1,112
|
Post by kaoz on Mar 24, 2023 1:15:12 GMT 1
Impressive map! I can 'feel' the hard work you've put in this!
|
|
|
Post by fallschirmjager on Mar 24, 2023 22:06:06 GMT 1
Great attention to detail - love it!
|
|
|
Post by Mascarenhas2 on Mar 30, 2023 17:47:18 GMT 1
That´s a real challenge. Good luck!
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Jul 27, 2023 22:04:39 GMT 1
Half remembered this quote from the Burning Horizon official description, decided to check if it was true and there it was: "Der KI Gegner sucht gezielt nach Lücken in Ihrer Verteidigung, räumt Minenfelder und setzt eine Luftwaffe cleverer ein."
"The AI opponent specifically looks for gaps in your defense, clears minefields and uses its air force more cleverly." www.amazon.de/-/en/dp/3936336652What the hell was that all about?! That's a bit of a bold statement for a completely passive AI that never does anything out of its own volition. They probably meant the missions weren't scripted as lazily as in the original BK. Still, that has to go down as one of the biggest straight up lies that have ever been printed directly onto a video game box.
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 13, 2023 23:43:01 GMT 1
I'm going nuts here. Working on my first mini mission to get learn lua and I'm stuck.
Everything going okay so far, except with these two functions:
function Win()
if (GetNUnitsInArea(1, "2-MObj") <= 2) then
ObjectiveChanged(1,1);
Win(0);
Suicide();
end;
end;
1. Once the units are eliminated and the function is triggered, it just spams the "objective completed" notification a million times, and it doesn't trigger a win for the player. I am at a loss as to why.
function Attack()
LandReinforcement(1);
Cmd(3, 1, 256, 256);
Suicide();
end; 2. Counter attack force spawns, but only a single infantry squad (out of 12 or 15 units) moves or attacks. Again, I feel like I've copied the tutorials word for word and I don't know where the mistake is.
Can anyone help with this? Thank you!
|
|
|
Post by Mascarenhas2 on Sept 14, 2023 1:20:27 GMT 1
Great work! Keep up!
|
|
|
Post by 777tanks on Sept 14, 2023 7:40:08 GMT 1
function Win()
if (GetNUnitsInArea(1, "2-MObj") <= 2) then
ObjectiveChanged(1,1);
Win(0);
Suicide();
end;
end;
1. Once the units are eliminated and the function is triggered, it just spams the "objective completed" notification a million times, and it doesn't trigger a win for the player. I am at a loss as to why. I think the problem here is in the function name. It shadows built-in "Win" function, causing infinite recursion when you call Win(0) inside it. Try renaming your function to "Victory" for example. function Attack()
LandReinforcement(1);
Cmd(3, 1, 256, 256);
Suicide();
end; 2. Counter attack force spawns, but only a single infantry squad (out of 12 or 15 units) moves or attacks. Again, I feel like I've copied the tutorials word for word and I don't know where the mistake is. It takes some time for all units to appear on the map, so after calling LandReinforcement you shouldn't immediately give commands. Instead, you should insert a short pause by splitting this into two functions, like this:
function Land() LandReinforcement(1); RunScript("Attack", 5000); -- 5 seconds pause should be enough for all units to appear Suicide(); end;
function Attack() Cmd(3, 1, 256, 256); Suicide(); end;
Hope this helps.
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 14, 2023 17:06:55 GMT 1
Yes, that solved it all! Thank you! Wow, I just launched my first 100% self-made map from the mission menu, played and completed it! It's a super simple mission but it feels good Now onto much, much bigger things...
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 18, 2023 15:30:59 GMT 1
How do you guys usually do your research when it comes to the types of vehicles used in a specific battle? Do you have any good sources for finding out which vehicles were used where? I'm especially interested in the more niche ones (e.g. Sturer Emil at Stalingrad, possible captured equipment) as well as the exact types (e.g. obviously T-34s were used, but which types exactly).
Googling "List of vehicles used in the battle of Stalingrad" yields shockingly few results. I asked chat GPT which planes were used there and one of them was apparently the Me262... I'm not quite ready to buy a book on the subject yet, but it's not like I found a good one for this purpose either.
|
|
|
Post by fallschirmjager on Sept 18, 2023 21:58:13 GMT 1
Hi Olvie,
SJ has compiled a table of units available in each each, check his Crimson Mod. Very good indeed, there few made earlier by different players. I may dig them out if you are stuck.
FJ
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 20, 2023 11:36:07 GMT 1
Hi FJ,
thanks for the tip. That mod is next on my list anyway.
Different question:
Since creating the mission folder under scenario/custom/mission/mymap GZM crashes when entering the custom mission screen in game. I'm guessing my 1.xml is somehow faulty, however I've checked line by line and it appears identical to other 1.xml files.
Anyone have an idea?
|
|
kaoz
General
inter faesces et urinam nascimur
Posts: 1,112
|
Post by kaoz on Sept 20, 2023 13:17:05 GMT 1
I'm guessing my 1.xml is somehow faulty, however I've checked line by line and it appears identical to other 1.xml files. Your 1.xml shouldn't be 100% identical to other 1.xml files. Have you changed all necessary paths to your map (and mission files)? Check this: www.blitzkrieg.be/helpz_bk/LuaScrptGuide/LuaScriptingGuide.htm#04 It deals with Map Markers, but read the part/paragraphs about 1.xml. Make sure the <RPG>, <FinalMap> and <MODName> parts/references are correct!
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 21, 2023 18:41:24 GMT 1
Yes, the paths and names have been adapted. I have triple checked everything but GZM still crashes when entering the menu screen.
The guide you posted is one of the references I've been using, I should be following exactly what is described there...
|
|
kaoz
General
inter faesces et urinam nascimur
Posts: 1,112
|
Post by kaoz on Sept 22, 2023 22:24:31 GMT 1
Ok, good, i wasn't saying that was the problem, but it could have been. Especially because you said 'identical'.
I'm only trying to debug with you... So, to clearly understand; the crash happens when you press the missions button just before you get to the missions list? You don't get to see the pop-up window listing all missions, right?
In that case, i would also suspect the 1.xml. Share it if you want me to take a look.
|
|
olvie
Potporucnik
Posts: 104
|
Post by olvie on Sept 24, 2023 15:30:13 GMT 1
I didn't mean to come across as rude, sorry! You guys have been nothing short of incredible with your support!
The crash happens when I click on the custom missions button, so before I even get to the missions list.
I checked and the other GZM missions don't have a mod name and version either so I assume it's not required since GZM runs in standalone..?
<base>
<RPG>
<KeyName/>
<StatsType>Mission</StatsType>
<HeaderText>Scenarios\Custom\Missions\aaa_stalingrad_mission\header</HeaderText>
<SubheaderText>Scenarios\Custom\Missions\aaa_stalingrad_mission\header</SubheaderText>
<DescriptionText>Scenarios\Custom\Missions\aaa_stalingrad_mission\description</DescriptionText>
<MapImage>Scenarios\Custom\Missions\aaa_stalingrad_mission\map</MapImage>
<MapImageRect x1='0' y1='0' x2='0' y2='0'/>
<TemplateMap/></TemplateMap>
<FinalMap>aaa_stalingrad_mission</FinalMap>
<Objectives>
<item Secret='-1 AnchorScriptID='-1'>
<Header>Scenarios\Custom\Missions\aaa_stalingrad_mission\0h</Header>
<DescriptionText>Scenarios\Custom\Missions\aaa_stalingrad_mission\0</DescriptionText>
<PosOnMap x='245' y='245'/>
</item>
<item Secret='-1' AnchorScriptID='-1'>
<Header>Scenarios\Custom\Missions\aaa_stalingrad_mission\1h</Header>
<DescriptionText>Scenarios\Custom\Missions\aaa_stalingrad_mission\1</DescriptionText>
<PosOnMap x='289' y='289'/>
</item>
<item Secret='-1' AnchorScriptID='-1'>
<Header>Scenarios\Custom\Missions\aaa_stalingrad_mission\2h</Header>
<DescriptionText>Scenarios\Custom\Missions\aaa_stalingrad_mission\2</DescriptionText>
<PosOnMap x='289' y='289'/>
</item>
</Objectives>
<SettingName><SettingName/>
<MODName></MODName>
<MODVersion></MODVersion>
</RPG>
</base>
|
|