.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Pretender Troubles *RESOLVED* (http://forum.shrapnelgames.com/showthread.php?t=31997)

UninspiredName November 26th, 2006 12:36 AM

Pretender Troubles *RESOLVED*
 
At the time, I'm trying to place my own pretender into the game. However, whenever I test, the pretender just doesn't appear on the list. The game doesn't crash, it just doesn't appear. I've, at times, tried removing the quotation marks on the 'spr' commands, in which case it crashes and gives me a complaint about the sprite command. It's also got on my case (Crash) for giving the pretender's second form a first form that hadn't technically been created yet, (Which I got around by using a selectmonster below the would-be first form.) which I guess shows the computer is paying attention. I've also tried wishing for my pretender, in which case the Wish casts fine, but the unit doesn't appear in any way, shape or form.

Technical Jargon:

The pretender has all his 'standard' stats, hp, startage, itemslots, etc typed in.

I put the pretender's sprites (16x32 TGA) in a folder in the mods folder, and access it with #spr1 ".\foldername\spritename.tga".

The pretender has a domcost, a pathcost, and a goldcost. Also, at one point for testing, a restrictedgod command.

I put one space in-between my commands, and use enters (Not changing the amount of spaces in any way) to improve readability.

The pretender doesn't have an outstanding number of special abilities. Only the pathcost and domcost, a secondform, and two magicskills, assuming goodleader/maxage etc don't count. At least, only that little during one particular test.

The dm file doesn't contain anything aside from the monster mods (And the mod name/description/version, of course) of the pretender and his second form. I end up using three '#end' commands. One for the second form, one for the standard pretender, and one for the second form again when I gave it the standard pretender as the first form.

The first form and second form monster numbers are 2460 and 2450, respectively.


Soo... Can anyone help me?

DrPraetorious November 26th, 2006 01:00 AM

Re: Pretender Troubles
 
Well, I'm stumped.

Make a zip file of the mod containing your custom pretender so that we can examine it?

UninspiredName November 26th, 2006 01:47 AM

Re: Pretender Troubles
 
1 Attachment(s)
Alright, here's the 'full' file, unscathed by my recent tests. The Pretender in question is Mario of Super Mario Brothers fame. What can I say, I enjoy making goof-off mods.

EDIT: And thanks for helping. http://forum.shrapnelgames.com/images/smilies/happy.gif

UninspiredName November 26th, 2006 05:35 PM

Re: Pretender Troubles
 
Update: After giving him a 'Jump' weapon, I succeeded in summoning him with a Wish spell. I don't recall changing anything aside from creating the 'Jump' weapon and adding the attack (Removing one of his two 'Kick' attacks) to Mario. and am not sure why it worked. He still doesn't appear on the pretender physical form list, despite having a pathcost and domstrength.

PvK November 26th, 2006 06:38 PM

Re: Pretender Troubles
 
When I load it, it looks like there are multiple mod commands on the same line. Did you try putting only one mod command per line?

PvK November 26th, 2006 06:42 PM

Re: Pretender Troubles
 
Also there is one line where it looks like you missed a space and got "1#magicskill", which probably needs at least a space before the #.

UninspiredName November 26th, 2006 07:00 PM

Re: Pretender Troubles
 
Well, logically speaking, since the 'jump' weapon works okay, and Mario can be wished for, chances are it doesn't really care about lines. Thanks for catching the syntax error, though. Unfortunately, the problem persists.

PvK November 26th, 2006 07:36 PM

Re: Pretender Troubles
 
He shows up as a god if I use him in a mod without the line
#secondshape "Mini Italian Plumber"

Putting in:
#secondshape "Phoenix"
or
#secondshape 5

also has him not appearing.

I think maybe it's a side effect of that command to make the unit unavailable as a pretender.

UninspiredName November 26th, 2006 07:38 PM

Re: Pretender Troubles
 
Update: For the time being, I've managed to give Mario Pretender status by selecting the Sacred Statue instead of making him from scratch. I like the Sacred Statue, so I'll probably swap him out for one of the humans. I'm thinking Frost Father. To those that have tried making Pretenders in the past, is there another way of allowing a new unit to become a pretender?

zepath November 26th, 2006 07:49 PM

Re: Pretender Troubles
 
I've never had a problem integrating new pretenders.

Things I notice from the .dm file you posted:

-You have no #restrictedgod commands so far as I can see. You will need to enter one to have the monster selectable as a pretender. Only one per new monster seems to work so you may have to make additional new monsters to use him with multiple nations.

-I don't know what's up with your forward-slash and back-slash usage in your #spr1 and #spr2 calls. Should be "/" only.

-You don't need to "re-open" the monster to give it a #firstshape or #secondshape after coding the alternate form. You can put those commands in the original code for the creature (between #newmonster <#> and #end) even if the other creature's code comes afterward.

*edit, forgot that...
-#firstshape and #secondshape commands should call to a monster number, not a name.


All times are GMT -4. The time now is 03:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.