Random Battle Generator Mod
Moderator: rickier65
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
Random Battle Generator Mod
I've created a mod for the RBG by adding some dropdowns that override the battle file parameters.
In extending the RBG battle files to include more options I found the amount of files was growing unmanagable and hard to find in the single battle dropdown. This mod allows you to change some of those parameters on the fly instead of in the XML files. Namely: increased unit buying modifiers, art of war, phases, and increased objective points.
Please take a look at the readme file for installation.
My next project while continuing to support this is to tackle the Random Campaign Generator by allowing an easier way to modify the core forces and including a few more (at this time) unspecified options.
I hope the mod eases some of the pain of creating a random battle by taking away some XML fiddling and I appreciate any feedback on it, especially if there are any HTML issues.
Thanks, have fun.
Edit:
Deleted the v0.1 verison in favour of the v0.2 version in this thread: tm.asp?m=2832019
In extending the RBG battle files to include more options I found the amount of files was growing unmanagable and hard to find in the single battle dropdown. This mod allows you to change some of those parameters on the fly instead of in the XML files. Namely: increased unit buying modifiers, art of war, phases, and increased objective points.
Please take a look at the readme file for installation.
My next project while continuing to support this is to tackle the Random Campaign Generator by allowing an easier way to modify the core forces and including a few more (at this time) unspecified options.
I hope the mod eases some of the pain of creating a random battle by taking away some XML fiddling and I appreciate any feedback on it, especially if there are any HTML issues.
Thanks, have fun.
Edit:
Deleted the v0.1 verison in favour of the v0.2 version in this thread: tm.asp?m=2832019
Moscow by winter? Only if you send Fast Heinz to Kiev.
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
Looking at it now.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
This is JSGME ready. Extract the folder from the zip into your MODS folder and install with JSGME.
Do you leave the Default 40:40 Battle Plan when using the other dropdowns? Can you still use the other battle plans without using the dropdowns?
Do you leave the Default 40:40 Battle Plan when using the other dropdowns? Can you still use the other battle plans without using the dropdowns?
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
Ok cool. I picked a 40:40 x3 and read the desc. Then I used the dropdown to change it to x4. The text then changed to indicate modifications and what they are.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
The main program is able to tell what size map is in a Set Battle and displays it in the selection screen. If you could figure out a way to do this and put it in the hta that would be wonderful.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
ORIGINAL: junk2drive
This is JSGME ready. Extract the folder from the zip into your MODS folder and install with JSGME.
Do you leave the Default 40:40 Battle Plan when using the other dropdowns? Can you still use the other battle plans without using the dropdowns?
Thanks for looking at the JSGME angle, I don't use it but am glad it works with it.
Yes, you can use other battle plans with it, only the 4 parameters specified will be overridden.
Moscow by winter? Only if you send Fast Heinz to Kiev.
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
I'll put that on my wishlist, thanks.
ORIGINAL: junk2drive
The main program is able to tell what size map is in a Set Battle and displays it in the selection screen. If you could figure out a way to do this and put it in the hta that would be wonderful.
Moscow by winter? Only if you send Fast Heinz to Kiev.
- Erik Rutins
- Posts: 39641
- Joined: Tue Mar 28, 2000 4:00 pm
- Location: Vermont, USA
- Contact:
RE: Random Battle Generator Mod
Great job, Dazoline! I'll take a look at this ASAP.
Regards,
- Erik
Regards,
- Erik
Erik Rutins
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
- Erik Rutins
- Posts: 39641
- Joined: Tue Mar 28, 2000 4:00 pm
- Location: Vermont, USA
- Contact:
RE: Random Battle Generator Mod
A very nice improvement! Great job, I'll be using this version for my own Random Battles from now on. [8D]
Regards,
- Erik
Regards,
- Erik
Erik Rutins
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
- Erik Rutins
- Posts: 39641
- Joined: Tue Mar 28, 2000 4:00 pm
- Location: Vermont, USA
- Contact:
RE: Random Battle Generator Mod
Is there any way with this version to have the RCG feed the RBG some of these new options for battle generation?
Regards,
- Erik
Regards,
- Erik
Erik Rutins
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
That's one of my next steps for a more complete mod.
The RCG does pass values to the RBG right now so extending/modifing those calls should be fairly easy.
The RCG does pass values to the RBG right now so extending/modifing those calls should be fairly easy.
Moscow by winter? Only if you send Fast Heinz to Kiev.
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
In the media folder for a map, there are a few graphic files that are the same number of pixels as the map size. In the mapmaker xml is GM_SIZE= and the size of the map. But the legacy maps do not have a mapmaker xml so I suspect that the game uses the graphics file to get the info for the Set Battle screen. map.bmp is common to both types of map folders.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
Aye, thats the only reliable way to get map dimensions, I couldn't find anything in any XML file about dimensions.
The routine I've come up with is about 98% reliable ATM for showing the map dimensions in the RBG. I'm hoping to improve that before I release 0.2.
Thanks for the info!
The routine I've come up with is about 98% reliable ATM for showing the map dimensions in the RBG. I'm hoping to improve that before I release 0.2.
Thanks for the info!
Moscow by winter? Only if you send Fast Heinz to Kiev.
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
I looked at the RBG code in notepad and see where the preplanned is added for German, Russian, Both, None but don't see those options in RBG. Only the AOW option. If you could get this on the RBG and RCG it would help with the first turn barrage complaints.
I think we need to remove the 203 and 300 from the presets to solve the problem completely.
I think we need to remove the 203 and 300 from the presets to solve the problem completely.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
ORIGINAL: junk2drive
I looked at the RBG code in notepad and see where the preplanned is added for German, Russian, Both, None but don't see those options in RBG. Only the AOW option. If you could get this on the RBG and RCG it would help with the first turn barrage complaints.
I think we need to remove the 203 and 300 from the presets to solve the problem completely.
I've put it on the wishlist, what does preplanned do exactly?
Does it enable the side or sides selected essentially get a turn one bombardment or is it to hurt some opposing units before the units are placed on the map? Or something else entirely?
Moscow by winter? Only if you send Fast Heinz to Kiev.
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
It is the preplanned bombardment abilty. In other words the ability to plot artillery in orders 1 and have it arrive during that playback. I'm not sure if it effects the in contact ability. In theory it should.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
I started a RCG with PZ Div short summer 41. I'm sure I clicked false for AOW. Second battle briefing states Soviets play with AOW.
Meanwhile the double flags really helps to get the battle over without hunting down all those Russkies hiding in the woods.
Meanwhile the double flags really helps to get the battle over without hunting down all those Russkies hiding in the woods.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
- dazoline II
- Posts: 400
- Joined: Mon Nov 05, 2007 3:59 pm
RE: Random Battle Generator Mod
The descriptions may very well have references to AOW in the battles, as I didn't add a dynamic factor for that aspect. The battles should all have AOW set to false until summer 42 when set in the RCG. At least they did when I tested it last.
Note this is the old thread, the new thread is here for the combined RBG : RCG mod.
tm.asp?m=2832019
Note this is the old thread, the new thread is here for the combined RBG : RCG mod.
tm.asp?m=2832019
Moscow by winter? Only if you send Fast Heinz to Kiev.
- junk2drive
- Posts: 12856
- Joined: Thu Jun 27, 2002 7:27 am
- Location: Arizona West Coast
RE: Random Battle Generator Mod
Dang me for picking the old thread. I am using the latest version.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."