Sherman Flame

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Sherman Flame

Post by junk2drive »

I need the Sherman flamethower tank.

I copy the flammpanzer and add it to my csv. Change the name to Sherman_Flame. Use Sherman asset. Add to my text1.

Test in game and it works but shoots shells/blast.

Data\Units copy flammpanzer.txt for animations and Sherman_0.s4f to my Units. Rename to Sherman_Flame. Change csv asset to Sherman_Flame.

Now it works in game but animation is without any blast or flame. Sherman recoils but that is it.

What else do I need?
Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Re: Sherman Flame

Post by Merr »

junk2drive wrote: What else do I need?
In the squad.csv .... Does your new Sherman_Flame unit have the FLAMERANGE attribute set to 2 ? Or whatever flamerange you want. If it's 0, it won't flame.
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

Yes it does. I copied the flammpanzer and only change the names.

I put them both in a battle with some HMG units. My Sherman attacks with the fire symbol from two hexes, same as the FP. The only difference is the animation, which I thought would be in the txt file. Maybe the s4f needs something too.
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Post by pipfromslitherine »

It might not have an emitter that is used for the flame effects.

Cheers

Pip
twoeyes
Slitherine
Slitherine
Posts: 114
Joined: Mon Sep 18, 2006 8:23 am

Post by twoeyes »

Hi there,

The emitter for the flamethrower effect needs to be named #!6 on the s4f. So you need to be able to modify the mesh I'm afraid.
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Post by pipfromslitherine »

I think I put the Sherman model out there didn't I? Either someone can tweak the object names, or you could even tweak by hand if you have an S3F?

Cheers

Pip
tim1966
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 161
Joined: Sat Jul 31, 2010 7:15 pm
Location: Brighton, UK
Contact:

Post by tim1966 »

The Sherman model is out there - I will do a quick convert for you junk however I had a pc virus this weekend and had to reformat and reinstall everything . Just trying to track down all my rpogram - fortunately all files are backed up but I wasted days trying to get rid of the bl@*&y virus and then reformatting and installing.

By the way Pip when I loaded the 3ds file for the sherman the body was upside down and massive - no problem as it was easy to fix but just thought I'd mention it. Also do you have an exporter for Maya?
Models from Tim's Surplus Store ... Established 1966 ... Open 24/7 ... closed for TEA TIME
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

Thanks for the help guys. I am in no rush Tim. (but I am in general impatient)

I'll upload the icons that I made and the other files for anyone else to play with.
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Post by pipfromslitherine »

Richard put together a flamer version for you guys - I guess he went to bed before I got it uploaded for him, but here is the link:

http://www.slitherine.com/files/bbc_ba/ ... _flame.zip

All kudos to the art monkey :)

Cheers

Pip
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

Thanks again.

Now it works but the flame shoots down in front of the tank instead of up and over the target like the FP.

I can live with it though.
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

Here are all the files and a readme with instructions.

DO NOT extract the files into your game or campaigns. Extract the files into a temporary folder and go to work. This is not game ready material. Simple yes, ready to go, no.

Updated file 10/07/2010

http://dl.dropbox.com/u/6754176/J2D_Sherman_Flame.zip
Last edited by junk2drive on Thu Oct 07, 2010 1:37 pm, edited 1 time in total.
Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Post by Merr »

pipfromslitherine wrote:Richard put together a flamer version for you guys - I guess he went to bed before I got it uploaded for him, but here is the link:
Pip and Richard,

Thanks alot for taking a moment out of your busy schedule and getting a flame version out the door.

Pending any animation problems (like J2J mentioned) it sounds like a good addon for the next patch!

Rob
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

In addition to the downward flame, when firing regular ammo, there is no animation blast or explosion. I didn't check the FPIII to see what it does.
twoeyes
Slitherine
Slitherine
Posts: 114
Joined: Mon Sep 18, 2006 8:23 am

Post by twoeyes »

Hi there,

I've fixed the muzzle object orientation bug. Pip's put up the new zip in the same place.

Sorry for the error - you just can't get the staff nowadays :)
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

The shell shot now has two blasts out the rear of the tank, nothing out the gun, small blasts at the target. In one instance over a 4-5 hex distance, the shell shot animated the flame instead.

EDIT I copied the churchill croc txt since it works correctly but I only get MG fire from the back of the tank.
BTW I deleted the old s3f s4f before I placed the new s3f in the file. Then renamed it with _0
twoeyes
Slitherine
Slitherine
Posts: 114
Joined: Mon Sep 18, 2006 8:23 am

Post by twoeyes »

I tested it here with the flammpanzer data and it seemed to work ok?
twoeyes
Slitherine
Slitherine
Posts: 114
Joined: Mon Sep 18, 2006 8:23 am

Post by twoeyes »

Not sure whats going wrong. Just retested it using the Flammpanzer data and seems OK here (I rename the sherman_flame.s3f to flammpanzer_III_0.s3f, then place Flammpanzers in a mission using the editor, and see Shermans shooting flame from their tank barrels). This is the data I'm using for the Flammpanzer_III.txt

[FIRE00]
FRM 0 20
FX 3 6
SFX 1 54
SFX 1 34 128 129
[MGFIRE00]
FRM 180 200
FX 2 1
FX 12 0
SFX 0 31 122 123
SFX 12 41
CALL 2 0 2
CALL 6 1 2
CALL 9 1 2
CALL 11 1 2
[MOVE00]
FRM 25 55
FX 0 2
FX 0 3
AMBIENT 14
[MOVE01]
FRM 60 80
FX 0 2
FX 0 3
AMBIENT 14
[MOVE02]
FRM 85 100
FX 0 2
FX 0 3
AMBIENT 14
[WAIT00]
FRM 105 120
FX 0 2
[WAIT01]
FRM 125 145
[DIE00]
FRM 150 160
FX 0 4
DIETEX 0
[DIE01]
FRM 165 175
FX 0 5
DIETEX 0
[FLAME00]
FRM 0 20
FX 3 6
SFX 1 54
SFX 1 34 128 129

I wonder whether the issue might be that the Crocodile has a gun and a flamethrower, whereas (as I understood anyway) the Sherman flame only has a flamethrower? That might mean that using the Crocodile data, it might expect to have an extra emitter for the gun flash whereas in the Flammpanzer, they have both been made into flame effects?
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

I was going to research the Sherman to see if it could fire both shell and flame.

Yes the flame is working properly now, thanks.

It is the regular gun animation I am having trouble with. If the Sherman is only supposed to fire MGs then I think I had that working at one point.

When you target something you get the two symbols, flame and shell, and I thought it should fire like a regular tank.
junk2drive
BA Moderator
BA Moderator
Posts: 1478
Joined: Sun May 23, 2010 4:47 pm
Location: Arizona USA -7GMT

Post by junk2drive »

Here we go

http://pwencycl.kgbudge.com/T/a/Tanks.htm

No main gun.

Using the above text I have my Sherman shooting MG fire out the front and flames working properly.
Merr
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 903
Joined: Mon Aug 16, 2010 2:00 pm

Post by Merr »

J2J,

I checked and I see why you talked about the tank having both HE attack and Flame attack. I compared your sherman_flame to the us_flamethrower values in the CSV ...

If you want this to work properly(or shall I say, differently as far as the player's POV goes) ... Change these attributes in the CSV for the SHerman_flame to read 0 ;

HEReactionRange
HERange
HEAttack[0]
HEAttack[1]
HE_Effectiveness[0]
HE_Effectiveness[1]
HE_Effectiveness[2]
HE_Effectiveness[3]
HE_Effectiveness[4]

Also, I recommend that FlameRange = 3 instead of 2 ... but that's your call. :wink:
Hope that helps.
Post Reply

Return to “Battle Academy : Modders Corner ”