Japan
Moderators: Slitherine Core, BA Moderators
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Actually I already have it working by just changing the csv to 0 for blocking. I'd rather change my units to match your bsf's so that everyone has the same one's. If I was as good as you I would make it restore shots instead of morale. Maybe I will make a Medic truck for morale or men.
I use ZipGenius because it works well, can make a 7zip, opens rar files. I don't see why a Mac wouldn't open it. But what do I know about post Apple IIe stuff?
ZipGenius is freeware that I have used for years. You might check his website (Italy) and see if he says something about Macs.
I use ZipGenius because it works well, can make a 7zip, opens rar files. I don't see why a Mac wouldn't open it. But what do I know about post Apple IIe stuff?
ZipGenius is freeware that I have used for years. You might check his website (Italy) and see if he says something about Macs.
Cool idea ... a Medic truck ... you can paint a new DDS with a red cross(+) ... then modify the "revive" chance to read 100%.junk2drive wrote:If I was as good as you I would make it restore shots instead of morale. Maybe I will make a Medic truck for morale or men.
Tell you what ... I've got a few hours to walk you through on how to make your own "action_button" using the Rally.BSF as a template .... basically it's just changing the function names and adding/removing code to whatever you want!
Lets start some new threads, called "Shot Restore" and "Medic Truck". These can be quick tutorials so anybody can follow along and make there own buttons.
BTW, in your new scenarios you mentioned that you turned "OFF" the GainExperience in the "MoraleTools" , however, there are other places (BSF) where units will GainExperience, including my RallyBSF which has a 20% chance the Leader will gainXP. The best way to cover all the bases is to use the FIND feature and go through every BSF and search for GainExperience, then comment it out.
Merr
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Try this out ... Make a copy of the RALLY.BSF file, call it AMMO.BSF ...junk2drive wrote:As long as you are not upsetting your host.
Then, open the $DEFAULT.BSF and add the include statement ... include "ammo.bsf"
Open the new file, Ammo.BSF, and delete all the code ...
Then, copy/paste this code in below ...
Note, anywhere that it reads "IDS_" you need to make a new entry in your text1 file.
Also, I used the old action button "action_rally"... you need to make a new button DDS later.
And, finally, I used the condition "IsUnitType" with "ammo_truck" ... change this to read the name of your ammo truck if it's different. The entry is in the FUNCTION CHECK_UNIT_AMMO .
I can't test this so let me know if it works ... I might not be able to fix it now but it's a start ...
Code: Select all
FUNCTION AmmoAttack (me, unit, tilex, tiley)
{
int men ;
int i ;
int ammo ;
// total men (inc dead)
men = GetUnitMen(unit) ;
for(i=0;i<men;i++)
{
if(GetUnitManDead(unit, i) == 0)
{
AddVizUnitTurnToFace(me, tilex, tiley, 0) ;
AddVizCamUnit(unit) ;
AddVizUnitText(unit, "IDS_UNIT_AMMO", "ffffff", 1) ;
ammo = GetAttrib(unit, "Shots") + 3 ;
if (ammo > GetBaseAttrib(unit, "Shots") )
{
ammo = GetBaseAttrib(unit, "Shots") ;
}
SetAttrib(unit, "Shots", ammo) ;
// drop out of loop
i = men ;
}
}
}
FUNCTION SetAmmoString(me, tilex, tiley)
{
int unit ;
StartString() ;
PrintString("IDS_TT_AMMO") ;
unit = GetUnitOnTile(tilex, tiley) ;
if(GetUnitLOSToUnit(me, unit)==0)
{
PrintStringLiteral("\n") ;
PrintString("IDS_NOLOS") ;
}
if(GetDistanceBetween(me, unit) > 1 )
{
PrintStringLiteral("\n") ;
PrintString("IDS_OUTOFRANGE") ;
}
}
FUNCTION UISETUP_UNIT_AMMO(me, tilex, tiley)
{
SetAmmoString(me, tilex, tiley);
SetUITooltip() ;
SetUITexture("action_rally", "ffffffff") ;
// note, to use a different button like "action_ammo", you need to make a new DDS.
}
FUNCTION UIBUTTON_UNIT_AMMO(me, x,y,width, height, tilex, tiley)
{
//RenderVCenteredString(x,y,width,height,10,1,"ff000000") ;
}
FUNCTION Unit_AMMO(me, unit, tilex, tiley)
{
AmmoAttack (me, unit, tilex, tiley) ;
// use up all movement
SetAttrib (me, "AP", 0) ;
}
FUNCTION CHECK_UNIT_AMMO(me, unit, tilex, tiley)
{
int ret ;
ret = -2;
if( (IsDeploying() != 1 ) && ( GetUnitDead(unit) == 0 ) && ( CheckArmourType (me, unit) == 0) )
{
// only allow on friendly units whose shots are < base & only allow if we are an Ammo Truck
if ( ( GetUnitStatus ( me ) >= 0 ) && ( IsUnitType(me, "ammo_truck") == 1) && ( GetUnitSide (me) == GetUnitSide(unit) ) && ( GetAttrib (unit, "shots") < GetBaseAttrib (unit, "shots") ) )
{
// only allow if it is infantry/mg/mortar
if ( GetAttrib(me, "Blocking") == 0 )
{
// instead of hiding, only disable button if it is of the correct type and friend
ret = -1 ;
// only allow if we have not moved
if ( GetAttrib (me, "AP") >= GetBaseAttrib (me, "AP") )
{
if ( (GetUnitLOSToUnit(me, unit)==1) && (IsUnitSuppressed(me) == 0))
{
if(GetDistanceBetween(me, unit) <= 1 )
{
ret = 0 ;
}
}
}
}
}
}
if(ret> -2)
{
SetAmmoString(me, tilex, tiley) ;
AddTileTooltip() ;
}
return ret ;
}
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Try this out ... Make a copy of the RALLY.BSF file, call it AMMO.BSF ...
Opened Notepad++ and made AMMO.BSF
Then, open the $DEFAULT.BSF and add the include statement ... include "ammo.bsf"
Forgot this step
Open the new file, Ammo.BSF, and delete all the code ...
Then, copy/paste this code in below ...
Note, anywhere that it reads "IDS_" you need to make a new entry in your text1 file.
Did that
Also, I used the old action button "action_rally"... you need to make a new button DDS later.
Did that
And, finally, I used the condition "IsUnitType" with "ammo_truck" ... change this to read the name of your ammo truck if it's different. The entry is in the FUNCTION CHECK_UNIT_AMMO .
ammo_truck_al / I will need to add for ammo_truck_ax or will it look for ammo_truck ? wildcard * does that work?
I also added a column to my csv, Ammo and gave the trucks a 1
Finally got it working. Missing_IDS_unit_ammo
IDS_UNIT_AMMO, "More Ammo",
IDS_TT_AMMO, "More Ammo",
IDS_NOLOS
IDS_OUTOFRANGE
Need to remove turn toward unit, looks funny.
Thanks!!!!
Opened Notepad++ and made AMMO.BSF
Then, open the $DEFAULT.BSF and add the include statement ... include "ammo.bsf"
Forgot this step
Open the new file, Ammo.BSF, and delete all the code ...
Then, copy/paste this code in below ...
Note, anywhere that it reads "IDS_" you need to make a new entry in your text1 file.
Did that
Also, I used the old action button "action_rally"... you need to make a new button DDS later.
Did that
And, finally, I used the condition "IsUnitType" with "ammo_truck" ... change this to read the name of your ammo truck if it's different. The entry is in the FUNCTION CHECK_UNIT_AMMO .
ammo_truck_al / I will need to add for ammo_truck_ax or will it look for ammo_truck ? wildcard * does that work?
I also added a column to my csv, Ammo and gave the trucks a 1
Finally got it working. Missing_IDS_unit_ammo
IDS_UNIT_AMMO, "More Ammo",
IDS_TT_AMMO, "More Ammo",
IDS_NOLOS
IDS_OUTOFRANGE
Need to remove turn toward unit, looks funny.
Thanks!!!!
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Somehow the UNIT_AMMO started working.
Here is the latest with a test the icons battle.
http://dl.dropbox.com/u/6754176/1018Pac ... aign_2.zip
I made icons from shots of miniatures figures and setting view level to 10 and screenshoting.
The ammo trucks also can transport so that you can take a HQ with you for Rally.
Here is the latest with a test the icons battle.
http://dl.dropbox.com/u/6754176/1018Pac ... aign_2.zip
I made icons from shots of miniatures figures and setting view level to 10 and screenshoting.
The ammo trucks also can transport so that you can take a HQ with you for Rally.
Ok ... since you did this then you can swap the IsUnitType code with the GetAttrib code, like this ;junk2drive wrote: I also added a column to my csv, Ammo and gave the trucks a 1
Change this below ;
Code: Select all
( IsUnitType(me, "ammo_truck") == 1)
Code: Select all
( GetAttrib(me, "ammo") == 1)
Ok, you don't need these IDS_ above, these are already included by default, however, if you don't see anything unusual then leaving them in won't hurt.junk2drive wrote:IDS_NOLOS
IDS_OUTOFRANGE
Now, as you look at the whole code, you can see that tweaking this to fit your needs are simple ... tweaks can be like ;
- Costing a few AP to reload 1 Shot, so the truck can move and supply ammo on the run.
Also, this code can be quickly converted to a medic truck ... When I get back into town I'll have more time to explain how it all works in detail so you can eventually build your own stuff. I'll tell ya, once you start delv'ing into this you'll get bitten by the mod bug and you'll never get anything done in the real world
Merr
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
I've done a bit of modding.
I changed it to getattrib so that later if we get ammo crates and tents we don't have to make changes. I also thought that the ammo crates could be carried by any transport. Might be useful.
I like the idea of medic trucks and ammo trucks better than a bonus button because you have to think about how to use them and protect them. A good arty strike could wipe them out too.
I changed it to getattrib so that later if we get ammo crates and tents we don't have to make changes. I also thought that the ammo crates could be carried by any transport. Might be useful.
I like the idea of medic trucks and ammo trucks better than a bonus button because you have to think about how to use them and protect them. A good arty strike could wipe them out too.
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
Zero
tora tora tora
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- BA Moderator
- Posts: 1478
- Joined: Sun May 23, 2010 4:47 pm
- Location: Arizona USA -7GMT
-
- Sergeant - Panzer IIC
- Posts: 196
- Joined: Sat Apr 15, 2017 3:30 pm
Re: Japan
I am on a roll digging up old stuff. Any ZIP? If I get one, I think the Soviets and Japanese might have a small battle
Re: Japan
Hold fire on that TankerOne.
I will be releasing a new Skirmish Mod soon for Japan v Soviets using all these old modded Japanese units. They needed quite a lot modding to get them working properly in BA2, as these old BA Pacific war mods were quite different to a normal BA2 game.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Re: Japan
Will you be doing Khalkin Gol or the Soviet Invasion of Manchuria? Either way I'd find it interesting to see a campaign based on Japan vs Soviets. You rarely get to hear about the combat between the Russians and Japanese during the war.Paul59 wrote: ↑Sat Jan 11, 2020 9:10 amHold fire on that TankerOne.
I will be releasing a new Skirmish Mod soon for Japan v Soviets using all these old modded Japanese units. They needed quite a lot modding to get them working properly in BA2, as these old BA Pacific war mods were quite different to a normal BA2 game.
Re: Japan
The Skirmish mod allows you to generate random battles from both 1939 and 1945, although the Japanese army of 1945 is seriously outclassed by the Soviets. It should be ready to be released very soon.DatMoff wrote: ↑Tue Jan 28, 2020 2:13 amWill you be doing Khalkin Gol or the Soviet Invasion of Manchuria? Either way I'd find it interesting to see a campaign based on Japan vs Soviets. You rarely get to hear about the combat between the Russians and Japanese during the war.Paul59 wrote: ↑Sat Jan 11, 2020 9:10 amHold fire on that TankerOne.
I will be releasing a new Skirmish Mod soon for Japan v Soviets using all these old modded Japanese units. They needed quite a lot modding to get them working properly in BA2, as these old BA Pacific war mods were quite different to a normal BA2 game.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.