Strange Issue

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Strange Issue

Post by PvtParts »

Im updating one of my older maps with my redone sides. The entire rep side works fine without any crash, and it has 8 units (2 AddUnitClass lines).

The cis side, however, when given addunitclass, crashes.

It either freezes after a bit of loading (it loads for a while, then the load will stop blinking and it'll just lock up. You can exit out unless you have the game minimized at the time of the lock up) or locks up immediatly after loading.

The 2 classes I have tried add unit with is my droideka, and my spec battledroid. Both cause this crash. I actually want to also have another unit, but havent gotten to that.

Now, I know my droideka works on other maps, and maps with addunit. I am unsure of my spec, but I havent changed it since the original version of the map so theres no reason it shouldnt work.

This has really confused me. If you all want to see my mungelog I can get it up here, though from looking through it im pretty sure theres nothing crash-causing.
Rikino

Post by Rikino »

My advice: triple-check your addunitclass to make sure you aren't missing a parenthesis or somthing.

If you aren't, do the units work when you add them in without the addunitclass? Try just putting them in the normal way, eg. 'soldier = {' and whatever.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Yep I was actually in the process of doing that when I posted.

Neither the droideka, spec, or the geonosian (which is the third unit) work.

I'm really confused. If you wall want, I'll post the odfs for those guys. I've already double and triple checked everything - including reqs and what not for those units.

Im a bit confused and on the verge of cutting them from the map. Bah.
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Post by Syth »

what do the modtools.exe say?

i bet its something tot do with animations
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

remember the dc: ! :lol:

Are the new units named something unusual or anything? Which is kidna off-topic right now, but does anyone of you know if the game would go crazy if we used letters like; æ ø å Æ Ø Å ? I mean, those aren't in the english alphabet, but I kinda doubt you named one of your units like that... :P

I have to say I kinda blame the animations as well. Hwo many are regular units? Try to remove 2 units and insert 2 new units on the other side. aybe it just don't have enough memory?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

maybe clean. If you want to risk it.

I think that when you were making the units, it diddn't munge once, so the units diddn't change and you used that. WHen you put it in another map it did munge and the other effects changed. ((like changign the msh to somethign else. makes it crash. tired. not sure if you can read that.

If not. think back to "holocron code"
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Im already gonna say but no the units arent named anything weird - all standard characters. I actually have no clue other than cut and paste how to get those characters.

Im also pretty sure it has nothing to do with memory - I had both sides running with more units one the original version of this map.

And as for modtools, that lousy garbage, (as usual when I have an error that I don't already know and is really serious) gives me nothing of use.

Well, the one droid is called drd_battledroid_spec
drd is my sides name, as cis was taken (I use cis for separatist vehicles now). battledroid just tells type, and spec shows class.

i also have drd_geonosian (since no sense creating a whole new side for simple units like that, and it would pretty much only be seen in the presense of other sides)

and drd_droideka.

Now, the droideka works on other maps. I haven't tried the geonosian or the spec, though I may. I might also just delete the odfs and write new ones from scratch, because aside from the skin all I changed was the weapons loadout. So it wouldn't take much time to restore the units - if the error lies within the odf.

They are all using the default model, and I have other units using 00M's droid model, which work fine.

I'm pretty sure it has nothing to do with addunitclass - but this is only 1/3 proved. Add Unit works on the other side, and when I put these nonworking guys in the standard setup they still crash it. I just need to put working guys on the cis side with addunit and then I'll know for sure.

Hahaha I catch your drift too penguin. Holocron Code.

You guys seem to be onto this animation stuff. What exactly do you mean? Like they are all on default anims/mshs (skins have changed but nothing else).

PS. This is offtopic. Does anyone have a shiney droideka skin, or does anyone know how to look metal look shiney? I've been trying to look my droideka look a bit better - and photoshop shineyness doesnt look the same in game.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Tsk PvtParts, you've been here 6 months. You should know how debugging works. Post you Lua and munge log (small text size and maybe remove many similar lines).

Closing in on the error(s):
Comment out your extra units, clean, munge then run. Does it work?
Uncomment one of your extra units, clean, munge then run. Does it work?
Swap commented units, clean, munge then run. Does it work?
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Hahaha sorry zerted.

I was busy tonight, but I'll put in all 3 units (at this point im sure it has nothing to do with addunit, or unit amounts in general, so if any unit specific things come up you'll be able to get them).

I'll also post the odfs they are using. I will also post the odfs for weapons that I am unsure of (as in they are specific to that unit, and I dont know if they work).

Im almost sure you all wont find any thing serious in the mungelog, but if you intepret a standard issue "Duplicate effect ex45953 in model r392x01" to mean "Duplicate effect (you map) in model (will burn eternally)", then perhaps that could point to the problem, or at least let me know that satan has possesed these 3 units.

As for the odfs, if theres an error, im almost positive its here.

Though I do have a feeling, which is sad, that this is one of those currupted mod cases, though moving everything to a freshly created mod may not be the solution (already done it).

Anyhow, Ill get to the cleaning and munging and what not tomorrow afternoon.
Post Reply