• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

Search something to modify Units/scrapcost etc

Started by Shephren, March 19, 2009, 03:22:59 PM

Previous topic - Next topic

Shephren

Sry,my mistake.Changelog.text says : 1.3pb4 released.

Nielk1


Click on the image...

Shephren

Alright,i need to have 1.3pb4a to modify units/buildings in the way i want or is it possible to do that with my current version of bz2?
I've read some bugreports about it,i don't want to try out every kind of opening ports and firewall options again.Was like hell the first time,but i've managed it.
On the other hand,i just noticed that :
The major improvements of pb4, compared to 1.3pb3 are:
- Many more modder features, such as 60-char ODF names, inheritance, tons of new tuning values, etc
- Performance optimizations
- Easier to host games w/ automatic UPNP, Windows Firewall support(*)
So,you suggest i should get pb4a to modify things the way i want them to be,right?

Shephren

Getting annoyed right now.Downloadet pb4a installed it,renamed classlabel with ivrecy_cheap,tried it and the editor shuts down like before the patch.Network games are no problem,tested it right now.But the editor...,getting crazy.
Should i re-do all the odf files or load the data.pak again and create all the odf's again because i got a new bz2 version?

mrtwosheds

Quote,renamed classlabel with ivrecy_cheap
That will break it. You do not want to change the classlabel.

Shephren

#35
Even with classLabel = "recyclervehicle" it crashes.Where the hell is the problem?
What exacly i have to type in the box right below config in the editor?The name of the odf file,right?All other names open the console and it says Error,"xyz" does not exist.What about the basename?For example the recycler as a vehicle.In the modyfied odf,the basename is "ivrecy",is it necessary to type in a different name?Sry,complete noob concerning that stuff.

EDIT:@Warfreak.Sry,wha does AV means?Something like a crashreport or bugreport?

Warfreak

Post the EXACT AV that gets thrown your way when it happens. NOONE can help you unless we see that.

Nielk1

And the ODF i provided WILL WORK if you don't change it.

Click on the image...

Shephren

I'm going to cry...
I've done what you've said.No changes to the odf file,typed ivrecy_cheap into the console and the editor shuts down again without warnings.But when i type ibrecy_cheap in the box,he says "visual c++ runtime error" and after that i receive this log:

---- Battlezone II Log File ----
//=====================================================
App version: Patch 1.3pb4a EDITOR Aug  4 2008 12:11:38
Windows version: Windows Version: 5.1.2600 'Service Pack 2' PlatformID=2

Last few battlezone.log lines (may or may not be relevant):
DIAG|GLOBAL          |      MissionHandler:1432 |19:44:27|20246  |Expanded game UI file of 'bzeditor_enter_1280x1024.cfg' not found. Using default of 'bzeditor_enter.cfg'
DIAG|GLOBAL          |            runcodes:153  |19:44:27|20263  |[Edit] Entering run code [height]
DIAG|GLOBAL          |            runcodes:153  |19:44:28|21554  |[Edit] Entering run code [object]
ERR |GLOBAL          |         EntityClass:414  |19:44:33|26454  |Broken assets! File 'ivscout_cheap.odf' has classLabel pointing back to itself. FIX IT.
(done)

Exception code: 40000015 {Anwendungsbeendung}
%hs

Message :  Unhandled Exception
Error occurred at 3/22/2009 19:44:52.
F:\BZ 2\BZ2Edit.exe, run by admin.
2 processor(s), type 586.
Process Memory :   1790 MB free out of   2048 MB total
Physical memory:   1197 MB free out of   2048 MB total
Page(swap) file:   1884 MB free out of   2662 MB total
Fault address:  004FC9E7 01:000FB9E7 F:\BZ 2\BZ2Edit.exe

Registers:
EAX:00000000
EBX:06708663
ECX:00000000
EDX:7C91EB94
ESI:01D7B7B4
EDI:005E46CC
CS:EIP:5E001B:004FC9E7
SS:ESP:74650023:022BF894  EBP:022BF940
DS:5A0023  ES:22B0023  FS:003B  GS:0000
Flags:00200202

Call stack:
Address   Return    Function            SourceFile
004FC9E7  00000000  004AE65F  EntityClass::Find+0x00000175
004AE65F  00000000  004AD031  ParameterDB::ValidatedFind<GameObjectClass>+0x0000001B
004AD031  00000000  00433FAB  ParameterDB::GetGameObjectClass+0x00000044
00433FAB  00000000  00498BF7  ParameterDB::GetGameObjectClass+0x0000001E
00498BF7  00000000  004B73AF  FactoryClass::FactoryClass+0x0000018B
004B73AF  00000000  004B74A5  RecyclerClass::RecyclerClass+0x00000010
004B74A5  00000000  004FCA0F  RecyclerClass::BuildClass+0x0000001E
004FCA0F  00000000  00466CCF  EntityClass::Find+0x0000019D
00466CCF  00000000  0059D1AD  EditObject::Command::Process+0x000000A2
0059D1AD  00000000  0059D4DC  VarSys::VarItem::TriggerCallBack+0x00000018
0059D4DC  00000000  0059CF08  VarSys::VarItem::SetStr+0x0000005E
0059CF08  00000000  00566B3E  VarString::operator=+0x00000013
00566B3E  00000000  00568F3D  IFaceVar::SetValue+0x000000A6
00568F3D  00000000  005590B6  ICEdit::HandleEvent+0x000002A5
005590B6  00000000  00558378  IFace::ProcessCaret+0x00000167
00558378  00000000  00474584  IFace::Process+0x000001F0
00474584  00000000  0059BF95  MissionHandler::State::EditState::Process+0x00000032
0059BF95  00000000  00471C04  RunCodes::Process+0x0000019F
00471C04  00000000  0059BF95  MissionHandler::Process+0x00000011
0059BF95  00000000  0059B9B6  RunCodes::Process+0x0000019F
0059B9B6  00000000  0045BA0F  Main::MessagePump+0x0000004A
0045BA0F  00000000  0045B6F7  HandledMain+0x00000446
0045B6F7  00000000  00458E6F  HandledMain+0x0000012E
00458E6F  00000000  005AC7F7  WinMain+0x00000059
005AC7F7  00000000  7C816FF7  memset+0x00000191
7C816FF7  00000000  00000000  RegisterWaitForInputIdle+0x00000049

Does that help you in a way?

AHadley

Quote from: Shephren on March 22, 2009, 12:49:54 PM
Broken assets! File 'ivscout_cheap.odf' has classLabel pointing back to itself. FIX IT.

There is your problem. Look at the last four lines of BATTLEZONE.log (which opens in notepad, as do most BZ2 files). In this case, you didn't just change the classlabel of your recycler, you changed all the vehicles it builds too. either change them back to how they were or recreate the ODFs from scratch, without changing the classlabel.

Shephren

Finally something i understand (not completely but i understand it).
So,that means i delete all my modded odf's and create new ones,but i don't change their classLabel,just the scrapcosts(that's what i want),only thing i change except scrapcost is the odf name itself.like ivrecy_cheap,the odf's i save in the "addon" folder.
Then everything should be alright and work fine,or?

Nielk1

The PROBLEM IS, your class label is set to ivrecy_cheap, SET IT TO ivrecy!

Click on the image...

AHadley

Make absolutely certain that the classlabel on EVERY odf is set to that of the original.

Shephren

Thats weird.You say i shouldn't modify the classLabel.I let them as they were,just changed the scrapcosts of a unit or building,named the file he saves in the addon folder for example "ivrecy_cheap.odf".Other things,for instance things that need other buildings or create units,i've done like that:
[GameObjectClass]
geometryName = "ibfact00.xsi"
classLabel = "factory"
scrapCost = 0
scrapValue = 10
maxHealth = 6000
maxAmmo = 0
unitName = "Factory"
aiName = "BuildingProcess"
aiName2 = "BuildingProcess"
heatSignature = 2.0
imageSignature = 1.0
radarSignature = 1.0
isAssault = 1

armorClass = H

requireCount = 1
requireName1 = "ibpgen_cheap"
requireText1 = "Build Power"

provideCount = 1
provideName1 = "ibfact"

collisionRadius = 4.0


lightHard1 = "hp_light_1"
lightName1 = "o_white_nf"

[PoweredBuildingClass]
detectRange = 100

[BuildingClass]
tunnelCount = 1

tunnel01X0 = 3
tunnel01Z0 = 3
tunnel01DX = 2
tunnel01DZ = 4
tunnel01Edge = "wwtw"

soundAmbient = "ibfact00.wav"

// play ambient sound

[FactoryClass]
soundBuild = "ibrecy02.wav"
soundFinish = "iapc04.wav"
reloadMsg = "ivrecy12.wav"
rescueMsg = "ivrecy13.wav"

buildItem1 = "ivmbike_cheap"
buildItem2 = "ivmisl_cheap"
buildItem3 = "ivtank_cheap"
buildItem4 = "ivrckt_cheap"
buildItem5 = "ivatank_cheap"
buildItem6 = "ivwalk_cheap"
buildItem7 = "ivapc_cheap"
buildItem8 = "ivbomb_cheap"


[Lod1]
geometryName = "ibfactL1.xsi" ;geometry for lod1
distance = 80
dontShiftLOD = 1

Everytime i type in the editor,doesn't matter if "ivrecy_cheap" or "ibfact_cheap",he shuts down again without any comments.

Another thing i don't understand,is that you AHadley say,i should NOT change anything concerning the classlabel when i create a new odf.On the other hand,Nielk1 says,my classlabel should be (concerning a recycler) "ivrecy",but the normal classlabel of a recycler is "recyclervehicle".
What i want is a rec-variant like the ones i've got at the moment.Commando Variant A etc.Don't know if theres a difference between making a new rec-variant and just the changing of some values.
Sorry if i'm too dumb for that :-),but thanks to you all for helping me,even if this seems very difficult.

Zero Angel

Well the first step is to isolate the problem. For example, try to have ivrecy_cheap deploy into an ibfact (because we know for a fact that ibfact isnt broken). If it doesnt AV then ivrecy_cheap isnt the problem, ibrecy_cheap (what it is supposed to deploy into) is. Check that ODF to make sure its all good.
QuoteAwareness, Teamwork, Discipline
Constantly apply these principles, and you will succeed in a lot of things, especially BZ2 team strat.
{bac}Zero Angel
Victory through superior aggression