Adding new functionality to engineers...?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

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

Re: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Theoretically, trees to be removed could include 2-3 per square of...

French trees 1 to 4
French blocking tree
British trees 1 to 4
British blocking tree
Palm trees (so we can use it on the big pacific islands, I'm sure you're working on! ;-)
Desert blocking tree
Noticed! no need to transfer the plants and other brush?
“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: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Hedgerows to be removed could be from French or British object sets (does BA differentiate?)

They're often accompanied to stone wall or desert stone wall... For nice visuals for fortresses
I think there are just two models of hedge: the normandy and the snowy ones.
I have to remove the two if needed.
As stone wall, desert wall, etc.
“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: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:What was causing the warnings?
I don't know! I do that very quickly after a long work week, so I just made ​​mistakes.
And like any coder, I would say: 'Warning? who cares?' :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: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Can we add an explosion sound when the demolition executes? (A mortar type animation in the target square, before removing the tree/tank trap/hedgerow, would be über nice too, but you've created A LOT already :-))
Sure! It's very simple.

Well, I'll do everything that we discussed and I put it the entire mod on my site when it'll be ready (today?)
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

OMG WOW! That's awesome! :-)
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

No need to delete plants, brush, etc, because they have no impact on movement...

So, the player can choose one of the four options?

(i) Cut down trees (to remove trees and convert forest to grass)
(ii) Demolish wall (to remove hedgerow and stone walls/desert stone walls together)
(iii) Remove tank trap
(iv) Construct tank trap

So, to remove a hedgerow & stone wall would take one move, and to remove a tree/forest that had been behind the hedgerow would take a second move... so two moves in total... PERFECT!
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Ps. Bonjour Monsieur! How's the Côte d'Azur?
There's a screaming cold wind and 2m waves frothing, here in Sussex...
I'm not on the French Riviera but near the Sainte-Baume. :wink:
An icy wind and also very strong: more than 130 km/h :cry:
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

Afterthought... If I order the engineer to cut down a forest/tree BEHIND a hedgerow, is the mod smart to say, "Nope you can't access that. Demolish the hedgerow/wall first!"
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

No way, it's WINDIER with you than me!!!
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Afterthought... If I order the engineer to cut down a forest/tree BEHIND a hedgerow, is the mod smart to say, "Nope you can't access that. Demolish the hedgerow/wall first!"
It does not work like that.
An engineer is able to cut down a forest/tree on on the tile where he is.
So if you want cut down a forest behind a hedgedrow, you must first destroy the hedge to go into the forest tile. To be able to cut down it.
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

Ah, I see... Your way is logical... An engineer should only be able to demolish things on his own tile, not on the neighbouring tiles... Nice
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding new functionality to engineers...?

Post by Amaris »

I opened 'officially' a webpagefor it! :P Yet another project. Hoping that my wife does not see this or I'm deadman. :wink:

So this mod works for all engineers (us, british, german and afrika korps).

the first fully operational features.

Add a tank trap:
Image
Image
Image

Remove atank trap:
Image
Image
Image
Image

Cutting hedgerow (works for both type - just add wall removal):
Image
Image
Image

Please note the superhuman efforts for icons. :P :mrgreen:

I still have to finish the terraform.
I remove the forest tile and all types of trees.
Nothing to do for the mud?
And see these %^£$ warning.
“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: Adding new functionality to engineers...?

Post by Amaris »

Amaris wrote:And see these %^£$ warning.
Found it! Sometimes I scare myself when I reread my code. :mrgreen:
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

That's soooooo cool!
Nice demolition icon too btw
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding new functionality to engineers...?

Post by Amaris »

Image
Image
Image
Image

What's else? :mrgreen:

Mud?

Want to be able to build a bridge? :mrgreen:
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

Mud was just an intermediate step...

So the demolition process would have gone...
Trees/forest -> Mud -> Open ground

So it would take time (or several engineers) to blow away large tracts of forest

But what you've achieved is already amazing...
so we're happy to live without our mud...
Unless it's easy to insert?

:D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:(ii) Demolish wall (to remove hedgerow and stone walls/desert stone walls together)
More complicated than I thought. But that will not stop me. :mrgreen:

Do you want to able to remove;
- hedgerow and a possible wall?
- wall too? I mean even without hedge.
“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: Adding new functionality to engineers...?

Post by Amaris »

GottaLove88s wrote:Mud was just an intermediate step...

So the demolition process would have gone...
Trees/forest -> Mud -> Open ground

So it would take time (or several engineers) to blow away large tracts of forest

But what you've achieved is already amazing...
so we're happy to live without our mud...
Unless it's easy to insert?

:D
Very simply to do!
Just change Tree/forest -> Mud
And add a similar action to transform a mud tile into open ground.

That said there may be a problem with the overlays (as road/track but also edging of mud, forest, etc.)
And it's much more complicated. Just look at the edging plugin to understand. :mrgreen:
And this problem is anyway with or without the mud.
So...
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

Amaris wrote:
GottaLove88s wrote:(ii) Demolish wall (to remove hedgerow and stone walls/desert stone walls together)
More complicated than I thought. But that will not stop me. :mrgreen:

Do you want to able to remove;
- hedgerow and a possible wall? YES PLEASE
- wall too? I mean even without hedge. NOT NECESSARY for us (wall doesn't impede movement)
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding new functionality to engineers...?

Post by GottaLove88s »

Edging doesn't matter too much for our mud
It's all inside forest, so that will help aesthetics without the edging
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”