BETA randomised maps

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Post by Merr » Sun Jun 05, 2011 1:20 pm

You're fast :wink:

I'll give it a go and let you know!

Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Post by Merr » Mon Jun 06, 2011 1:23 pm

Amaris,

Very nice !

I ran a few missions ....

1. Balance ... The AI defenders for each VP wasn't even. I was able to capture 3 VP's (out of 4) quickly with one or two defenders. The 4th VP was in a large town and it took me 14 turns to capture, but, the AI quickly captured the VP and I loss ... :) . The 3 lightly defended VP's didn't have much cover ... Could TeamCover(team) affect that?

2. Reinforcements (mobile team?)... The AI reinforcements appeared to want only 1 VP as a destination. Perhaps adding in logic from SLITH_VictoryPoints.bsf ... FUNCTION Slith_VP_CheckAITeams() ... might give the AI a little more flexibility? EDIT: add to AiRules() ?

3. CarryOver .... Suggestion, remove FIXED so player can re-deploy unit. I use the "ClearAreaLOS" and provide a 5 tile clearing on the players board edge. This might save a turn or two when organizing units for the attack?

4. Map Generation ... I didn't see any problems yet. EDIT: Single tree in tile didn't have forest tile ... normal?

I wrote a script to "dirty" the map up with shellholes ... Could you use it ?

Code: Select all

FUNCTION StartTurnPost(side)
{
int x ;
int y ;
int damagechance ;

	// randomly damage tiles
	if ( GetTurn() == -1 )
	{
		for (x=0; x<GetMapWidth();x++)
		{			
			for (y=0; y<GetMapHeight();y++)
			{
				damagechance = Rand(0,99) ;
		
				if( ( IsValidTile(x,y) == 1 ) && ( damagechance < 10 ) )
				{
					DamageTile(x, y, Rand(64,255)) ;
				}
			}
		}
	}	
}
Thank you for providing a peek at your work!

Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Post by Merr » Mon Jun 06, 2011 2:37 pm

Amaris,

Don't forget, the FORD tile is still broken (does not provide a crossing).

For a quick add-on ... my old "mud/ford" template .... adjust values to your liking!

viewtopic.php?t=19927&start=0

It would be cool if you had more mud when the weather was raining 8)

Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Post by Amaris » Tue Jun 07, 2011 8:20 am

Hello Merr,

1. There must see between one and four defenders by VP for Mission 1 ; addition one or two to possible 'heavy defender' / mobile AI force. Playing in debug mode and with the F7 key it is easy to see the defender's initial placing. Again the script is fairly simple and probably need more complexity to better position the units.

2. AI rules are very simple for now. I'll look the SLITH_VictoryPoints.bsf :-)

3. Why not, I don't find it very annoying to me.

4. In addition to the forest (tile forest) I plant some trees for scenery (tile grass) :wink: Make dirty the map up with shell holes is a good idea, adds it to ToDoList.

5. Indeed ford tile is broken :? I'll look your template 8)

6. It must be possible to add more mud when the weather was raining. I also work on the generation of pond.

Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Post by Amaris » Wed Jul 13, 2011 3:06 pm

Back :oops:

I went back to work on the generator:
- adds some tiles damages (shellholes).
- adds some ponds.
- more defenders.
- changes on IA - uses Slith_VP_CheckAITeams for team 0.
- still working on fords...

I would propose a new version to test soon.

Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Post by Amaris » Tue Jul 19, 2011 9:07 am

Well this project is temporarily halted.

Because I work first on plugin. This allows me to improve the map generator. Once the generator will be efficient, I will return to the campaign. :wink:

cam405
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 24
Joined: Tue May 07, 2013 2:04 am

Re: BETA randomised maps

Post by cam405 » Wed Dec 17, 2014 7:07 pm

Sorry to be so late to try out this new addition to BA.
Tried on my system today. Failed. My guess is that since 2011 the BA system has been updated and older stuff does not always work.

morge4
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2100
Joined: Fri Apr 29, 2011 2:56 pm
Location: Penalty Box
Contact:

Re: BETA randomised maps

Post by morge4 » Wed Dec 17, 2014 8:51 pm

Should still work after all this time.

Tested mine and it appears to work fine.

What kind of error do you get? What doesn't work?

Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: BETA randomised maps

Post by Amaris » Thu Dec 18, 2014 11:08 am

Back! :P

It's possible that this mod is no compatible with the latest version of BA1... I'll check the files when ... well ... as soon as possible. :mrgreen:
“Take care, my friend; watch your six, and do one more roll… just for me.”

Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: BETA randomised maps

Post by Amaris » Thu Dec 18, 2014 4:12 pm

Ok found some light script issues!

The corrected version is now online here; http://amaris-games.com/ba-amaris/scena ... -normandy/

Please erase the previous files and download again the mod.
“Take care, my friend; watch your six, and do one more roll… just for me.”

athineos
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 60
Joined: Thu Dec 29, 2016 7:00 pm

Re: BETA randomised maps

Post by athineos » Fri Jan 05, 2018 6:41 pm

Amaris wrote:Ok found some light script issues!

The corrected version is now online here; http://amaris-games.com/ba-amaris/scena ... -normandy/

Please erase the previous files and download again the mod.
Hi

is this the most current Random map generator for BA1?

Also do you have any basic guide of how to make a basic skirmish scenario from scratch (manual player vs AI)?

Thanks

Post Reply

Return to “Battle Academy : Modders Corner ”