discriminatingly banned by decimator
Moderator: Moderators
discriminatingly banned by decimator
discriminatingly banned by decimator
Last edited by MrNubyagi on 30 Nov 2006, 06:41, edited 1 time in total.
Unpack the mod you are playing.....and add GUNSHIP in the line Category= NAKEDSANTACLAUS PORTEAVIONSESPHERIQUE YELLOWSUBMARINE NOTISRIGHT etc (+) GUNSHIP ;
that you will find in *.fbi files from units folder .Pack again your mod with another name and play after change the editor.
To not repeat a lot of files and some MB you must to give a look in the modinfo file of some mods or SPRING base folder to see how it works, before to do it.This will avoid to pack all original mod plus your modifications, but only the modified files.For example the AA version AASHD.sdz have only 328 bites!!!!
VonGratz
that you will find in *.fbi files from units folder .Pack again your mod with another name and play after change the editor.
To not repeat a lot of files and some MB you must to give a look in the modinfo file of some mods or SPRING base folder to see how it works, before to do it.This will avoid to pack all original mod plus your modifications, but only the modified files.For example the AA version AASHD.sdz have only 328 bites!!!!
VonGratz
Not is a bug!This is definitely a bug.
You must to create a category to it became alive ingame.
If you MOD this, and people online play the same mod, it will work.besides theres no guarantee that after i do it, it will still be compatible while playing multi because if it would be, that means some people are allready cheating, if not, theres no point doing it.
VonGratz
Pretty much any selection you'd want can be done through the lua interface.
Here's an example of how to pull out the gunships. I placed this code in the
ConfigureLayout() call-in, and bound a key to: "layout gunships". I realize
that the average user isn't going to want to learn enough to do this kind of
coding, but thought I'd mention it anyways...
P.S. The better way would actually be to add an extra field to the UnitDefs[]
entries ("isGunship"), while initializing the lua code. Even faster would be to
make a list of unitDefs that meet the gunship criteria.
Here's an example of how to pull out the gunships. I placed this code in the
ConfigureLayout() call-in, and bound a key to: "layout gunships". I realize
that the average user isn't going to want to learn enough to do this kind of
coding, but thought I'd mention it anyways...
Code: Select all
if (command == "gunships") then
gunshipStr = ""
udTable = Spring.GetMyTeamUnits()
udTable.n = nil
for udid,uTable in pairs(udTable) do
ud = UnitDefs[udid]
if (ud ~= nil) then
if (ud.canFly and ud.hoverAttack and
not ud.isTransport and
not ud.isBomber and
(ud.weaponCount >= 1)) then
uTable.n = nil
for uid,x in pairs(uTable) do
gunshipStr = gunshipStr .. " +" .. uid
end
end
end
end
Spring.SendCommands({"selectunits clear" .. gunshipStr})
endentries ("isGunship"), while initializing the lua code. Even faster would be to
make a list of unitDefs that meet the gunship criteria.
