The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.24 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Renegade Projects Network Forums
New unit doesn't work! - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Modding (https://forums.renegadeprojects.com/forumdisplay.php?fid=3)
+--- Forum: Red Alert 2 & Yuri's Revenge Editing (https://forums.renegadeprojects.com/forumdisplay.php?fid=8)
+--- Thread: New unit doesn't work! (/showthread.php?tid=2033)

Pages: 1 2


New unit doesn't work! - DarkWiiPlayer - 19.10.2011

Hello.
I have spent all the day making a new MIG-29 Fulcrum voxel, and now when i try to add a new unit with that voxel, the game crashes.
It cannot be the voxel itself, because when i delete it it keeps crashing.
When I add Image=BEAG to my unit it works, but it should work without an image, like it did before (as an Invisible unit, but at least not crash).
[Image: fulcrum005.gif] [Image: fulcrum004.gif]

Unit in RulesMD.ini:
Code:
[MIG]
;Image=BEAG
UIName=Mod:MIG
Name=MIG
Prerequisite=RADAR
Primary=Maverick;2
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
Strength=200
Category=AirPower
Armor=light
TechLevel=3
Sight=8
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Dock=GAAIRC,AMRADR
PipScale=Ammo
Speed=10
PitchSpeed=1.1
PitchAngle=0
OmniFire=yes
Owner=British,French,Germans,Americans,Alliance
Cost=10
Points=20
ROT=3
Ammo=4
Crewed=no
ConsideredAircraft=yes
AirportBound=yes ; If I ever need to land and there are no airports I crash because I can only land on them
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
IsSelectableCombatant=yes
VoiceSelect=BlackEagleSelect
VoiceMove=BlackEagleMove
VoiceAttack=BlackEagleAttackCommand
VoiceCrashing=BlackEagleVoiceDie
DieSound=
MoveSound=BlackEagleMoveLoop
CrashingSound=BlackEagleDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=20    ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackEagleTakeOff    ;Taking off
;AuxSound2=BlackEagleLanding    ;Landing
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
AllowedToStartInMultiplayer=no
ImmuneToPsionics=yes
ElitePrimary=Maverick2E
PreventAttackMove=yes

in ArtMD.ini:
Code:
[MIG] ; MIG-29 Fulcrum Fighter
Voxel=yes
Remapable=yes
Cameo=FULCRUMICON
AltCameo=FULCRUMICON



RE: New unit doesn't work! - DCoder - 19.10.2011

You know what would help, the actual INI and asset files.


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

http://www.mediafire.com/file/hw532yjd82yad7b/MIG.7z

OK, i think that is all.


RE: New unit doesn't work! - Graion Dilach - 19.10.2011

http://modenc.renegadeprojects.com/Internal_Error#eip_004145BD

A HVA size of 24 byte... where did you got that?! Regenerate that one.

EDIT: Also, use Auto Normals when you say you're done with a voxel. I can see you're a beginner, this is good for a start, but it'll need normals and Auto Normals can add those in.


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

I have no idea why it is 24 bytes, but it can't be that, because when I delete it, the game still crashes.


RE: New unit doesn't work! - Renegade - 19.10.2011

Has it occurred to you that adding a proper one instead of going from one wrong case to another might help?


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

Usually, when i make a new unit and forget to add Image=<other unit>, the unit is invisible, but the game doesn't crash. Now, when i delete the voxels, and don't give it any other image, the game still crashes.
Anyway, I'm using OS HVA Builder 2.0, and i don't know why the HVA file is that big. Deleting and rebuilding it doesn't work; it is still 24 bytes.


RE: New unit doesn't work! - Graion Dilach - 19.10.2011

It's not too big, it's too small.

Here, take the attached one. Normally I'd say to get VXLSE 1.39 from here but it's unavailable due to the Revora server move ATM.

HVA Builder is discontinued anyway, beta VXLSE already does it's job, it autosaves/generates the hva, so take my advise and try to download this around next week or so.


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

Give me the name of a program, and i find a download. In this case, I found this:
http://www.ppmsite.com/forum/viewtopic.php?t=22122
I hope it works, and if it doesn't, I'll try your link in a week.
thx for the help.


RE: New unit doesn't work! - Graion Dilach - 19.10.2011

That's an old revision. Like the one on Google codes. Wait out the server move.


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

Ok, next time i download a program, i'll open a screenshot FIRST.
Voxel selection editor - That is the program i used to create the voxel. But how do i use it to generate the HVA file?


RE: New unit doesn't work! - Graion Dilach - 19.10.2011

Old version. If you look to the header, it says 1.38. If you followed what I said... I said 1.39.

Wait out the end of the server move.


RE: New unit doesn't work! - DarkWiiPlayer - 19.10.2011

Is there another download?
-------------------------------------
EPICFAIL...
Is there a way to rotate a voxel 90º?
Because i have a BIG problem in my plane...

WTF, What is the X-Axis?
This doesn't make sense...
-------------------------------------
I tried it again using your HVA, and the game still crashes.
It's NOT the HVA or the voxel.


RE: New unit doesn't work! - Drogan - 20.10.2011

Odd, the mig windows and the green, white, light blue colors are pink for me with the RA2 palette on... try replacing them.
I don't think Letters are acceptable in Technotype lists, just numbers and you might not have it in the PadAircraft entry.
You should try setting the unknowns to 1,2 not 1,0 as well.


RE: New unit doesn't work! - DCoder - 20.10.2011

When the game crashes, it creates an except.txt file in the game directory. Uploading that might give us another clue.

(Drogan: Letters are acceptable in the lists, as long as the value to the left of = is unique.)