|
Post by michael34 on Jan 28, 2010 17:04:17 GMT
I have tried to mod my slaves and servants so that they may be created out of the city center, but when I click in the icons the unit is created, but the units appear invisible (I only can see their LOS advancing through the terrain towards the CCenter Flag). When I select someone of them, the game crashes. I add my codes for you to see. Some help would be deeply appreciated.Thanks in advance.
Here is the code as it lies in dbtechtreenode:
Servant,text_Servant_name,,1,0,,,0,2,0,CityCenter,Servant,,25,50,0,0,0,0,0,0,0,0,0,,[],(None) Slave,text_Slave_name,,1,0,,,0,2,1,CityCenter,Slave,,25,50,0,0,0,0,0,0,0,0,0,,[],(None)
The icons appear in the pane of the city center (though the image inside them is rather odd one) but the models are like phantoms in the game. Regards.
|
|
|
Post by michael34 on Jan 28, 2010 22:25:33 GMT
PS I do can put these units in the editor and play with them, but the matter begins when I try to create them from the city center. I ask for a simple clue or hint, I've modded plants, animals and buildings and the engineer, but these are my first steps into modding military units (the burning target).
|
|
|
Post by PzK on Jan 29, 2010 20:10:12 GMT
I will look into it and see what i can do.
|
|
|
Post by michael34 on Jan 29, 2010 20:59:11 GMT
Thanks again
|
|
|
Post by PzK on Jan 30, 2010 23:48:41 GMT
Have you edited the actual DB file or scripted a scenario using the code you posted?
|
|
|
Post by michael34 on Jan 31, 2010 1:16:04 GMT
1. I have modded a lot of things in db, among them the two units servants and slaves, both lie in Heaven mods forum. Below I add the db models of them. Besides animations (simply copied those of citizen's), techtreenode, dbunittypenames and unittypetips in db/text, included them in dbunitfiles.cfg, including something in unittypeattributes. 2. I have edited some scens with both unittypes playing, just I didn't succeed in giving the citycenter the possibility of creating them like the citizen or the scouts. Some of these were scripted(Do you mean I must leave these techniques to scripts and stop modding so much??) 3.Thx for your help, Iknow you are studying(and likely working too, perhaps with g/f and children! 4. (optional) Btw (This point only if you are not too busy or tired of my queries) is it possible to kill the black spaces between skyboxes and the map with the config file?
|
|
|
Post by PzK on Feb 1, 2010 23:29:06 GMT
Sorry for the late reply, i've been stuck with alot of university work. Personally i've never really tried or attempted to implement new units into a game so im unsure if i can help you. I asked you about whether it was the scripting or DB file because i couldn't find it in the scripting bible and presumed it was in the DB but just wanted to check.
As for your last question I don't think it is possible to get rid of black spaces between the skybox and map having once tried to fix it myself.
Sorry i couldn't be of more help.
PzK
|
|
|
Post by michael34 on Feb 2, 2010 9:40:06 GMT
Thanks, Pzk. Don't mind the delay, I know you are rather busy. Surely I'll figure out it, only I didn't want to re-discover the wheel. CU soon!
|
|