Aller au contenu

Photo

Continuing on custom races (was classes tutorial thread)


  • Veuillez vous connecter pour répondre
11 réponses à ce sujet

#1
Rigortauri

Rigortauri
  • Members
  • 23 messages

Rigortauri wrote...

stuntpope wrote...

@Rigotauri

Yes
it sure is sensitive and doesn't handle errors very gracefully. I don't
think you should have to modify any core files. Are you sure you
couldn't have made your own constants file to extend the existing ones
the way I did in my tute?

I was having the same thought today
about using the backgrounds for selecting deities. Good stuff. Glad you
are making some progress.


well the problem lies indeed in the race+class+bg formula.

since
i shifted all races up a bit so that 1 through 6 are the playable
races, it complains about the double declaration of the constants.

the problem i have now, and i cant figure out what it is, is why it doesnt accept my default_.utc
the moment i change that in the bg_defaults.gda and chargen_preload.gda it crashes...

isnt there some errorlog file?

edit, it crashes even when trying to change it all.. for example to an existing utc char like default_elf_dal_r.utc


ladydesire wrote...

Rigortauri: I would suggest moving
your new races above the existing ones; I've added a race to my game
(the halfling) by placing it at ID 12 and it works just fine; I just
need to wait for someone to complete a modeling tool that will allow me
to scale the human model down, since editing the APR_base file to
downscale it doesn't seem to work.

stuntpope: That approach to the formula seems to be in line with what I have thought as well.


moving all the IDs up from 12 and beyond did indeed work.
ecept still crashing when altering a default UTC char.. can't even put default_elf_dal_r.utc for an elf rogue or its crashing again.

#2
stuntpope

stuntpope
  • Members
  • 112 messages
I have managed to get new templates to work when altering the backgrounds. I haven't changed any races but I don't see why that would make any difference.



Make sure that what you have in background_defaults matches what is in chargen_preload. Otherwise it will crash.

#3
Rigortauri

Rigortauri
  • Members
  • 23 messages
when trying the backgrounds, no problem.. this occured after adding the races.

yep both matches perfect.. the game does load, but the model dissappears when selecting the BGs
checked, rechecked, double checked everything..
so my guess is that it must be some script

thats why i am so eager to read those channels, to see what is going on.. but no info on where that info is stored, or accessed

Modifié par Rigortauri, 28 novembre 2009 - 01:36 .


#4
ladydesire

ladydesire
  • Members
  • 1 928 messages

Rigortauri wrote...

when trying the backgrounds, no problem.. this occured after adding the races.

yep both matches perfect.. the game does load, but the model dissappears when selecting the BGs
checked, rechecked, double checked everything..
so my guess is that it must be some script

thats why i am so eager to read those channels, to see what is going on.. but no info on where that info is stored, or accessed


I haven't tried with a different set of backgrounds, but using the default ones I was able to do it; you may need to create new templates for the races using the new entries you made in the RACE_base.xls.

#5
Rigortauri

Rigortauri
  • Members
  • 23 messages
was about to get happy... i duplicated the default_mage to a new one called default_vo_mage.utc

and it happily loaded!

then i changed a robe in the inventory... crashed.

#6
Rigortauri

Rigortauri
  • Members
  • 23 messages
the system is very instable.. changing 1 utc, and it crashes, putting it back to the fefault, then it works, 1 min later with the same settings, and crashes again... there is just no logic for the crashing..



sometimes it crashes, but after a reboot it works fine.. other try not emptying the package/cover/overwrite does the trick, but sometimes you have to clean it before it works..

it just doesnt make sense..

#7
Rigortauri

Rigortauri
  • Members
  • 23 messages
uff, i found out what was causing the problems...

After i made all the strings with the low id, i put my range back to where it originally started thinking it wont need any other low IDs.

except.. strings are made for everything you create after.. thus also a new creature template or a custom item.. which explains why duplicating or adding an item to the default chars caused the crashing.



last night i redid all the strings, removed all custom mades stuff like areas, items, plots etc etc, and recreated them (well actually duplicated and renamed, deleted old, renamed the new one back to its original name)



and voila, it did the trick..



got all 6 races (4 human races, elf and dwarf) working with default templates based on the backgrounds which are the deities

#8
stuntpope

stuntpope
  • Members
  • 112 messages
Good news - was the problem becasue you modified some of the core resources, e.g. templates?

#9
Rigortauri

Rigortauri
  • Members
  • 23 messages
nope, i have everything outside the core scripts, like in your BG tut... that approach works like a charm.

its was just that the templates (default_vo_warrior.utc for example) i made for the character (the ones in bg_defaults and chargen_preload) had a too high ID..

when you export your addin, it also create strings for everything you made (plots, areas, models, items etc etc)

if you put a filter to the string editor on "%" you will see all your strings.. the ones you made plus the one assigned for every other object.



since i put back my ID string to the original addigned value after i was finished with the background/races strings .. all those custom things got too high IDs.. and made the game crash

#10
Looy

Looy
  • Members
  • 388 messages
Has anyone got a non-human race to work?

#11
Rigortauri

Rigortauri
  • Members
  • 23 messages
like what?

#12
Looy

Looy
  • Members
  • 388 messages
Just anything that doesn't use the human appearance, I'm trying to get it working atm and no matter what I do the Race always seems to inherit the Human Face and Animations (not the body model though). So if you wanted to create a Race using the Dwarf appearance you'd get this tiny little chest with a human head floating about 3 ft above it.