![]() |
Re: UnitGen - Random nations with procedural sprites!
Quote:
|
Re: UnitGen - Random nations with procedural sprites!
Well, that wasnt too hard. Since i cant add new basesprites into spritegen, i just created tiger and named it like the boar mount. Selected boarmount in the tool, preview showed the tiger, saved and it worked.
http://prntscr.com/80h8s Can you add functionality to add new sprites for users ? |
Re: UnitGen - Random nations with procedural sprites!
You can add sprites. You just need to define them as mounts for a race.
Like for example humans, you'll probably want to go to /races/human/human_mounted/humanmounts_low.txt (humanmounts.txt is horses, the difference is the positioning of the leg: it's "shorter" in the non-horse poses) There you'll just add like Code:
#newitem |
Re: UnitGen - Random nations with procedural sprites!
Ok, i see. Its actually a lot of work to implement sprites if you want to associate them with values.
Assuming i add the tiger like you described, it will not only show up in spritegen, but from then on it will as well be used in nation gen ? I dont think so, right. Can you write a tutorial about getting it to show up in unitgen, i.e. where to set base chance and stuff ? Once i have a full tutorial, i could begin adding real units. |
Re: UnitGen - Random nations with procedural sprites!
Code:
#newitem I then did put a barechest guy with spear on top of it. the unit def turned out like this> Code:
--- Unnamed, Gold: 40, Resources: 9 thanks |
Re: UnitGen - Random nations with procedural sprites!
1 Attachment(s)
I added tiger, jaguar and wyvern.
Unfortunally the wyvern sprite doesnt show the FACE of the base human. why not ? I aligned the sprite of the wyvern on top of the pegasus rider, so the offset is correct. Will you include the edits from earlier (where i posted in code) in the next build ? Because if not, i wont bother to post all the stuff in this thread, thanks. If you, i can upload the sprites and altered .txts entirely or just in code-tags like earlier. In addition, do you want my "help" / posting in here or on the dom3mods ? dont mind with the attachments, i forgot to add weapon with the nostrength tag to the mounts. But you can check the problem witht he wyvern if you would. The files in general work, i just got a tiger rider to spawn in a nation. |
Re: UnitGen - Random nations with procedural sprites!
The wyvern problem is not because of you, apparently it's because of a bug that affected the hoburg hawk riders earlier too. I fixed it any from next version on it should look fine. The wyvern, however, probably needs an overlay to not look silly (you'll probably see once it's fixed and use big shield and big weapon). If you really want to get this fixed quick, go to races/human/poses.txt and add the line:
#renderorder "shadow cloakb mount basesprite shirt legs armor cloakf bonusweapon weapon offhandw hands hair helmet offhanda overlay" to both mounted poses, ie after the #newpose line obviously. In general, good job. They look good and seem to be positioned correctly too. Your item definition code looks good and it DOES add the bite attack when I tested it. Your unit has #weapon 352 which is the boar #nostr gore attack, so maybe you did some mistake? The unit price is lower than supposed probably because it's naked and gets the -30% cost reduction and is rounded to closest 5 afterwards. Code:
#newmonster 0 You'll also probably want to use the #theme "animal serpent" correctly (and pretty much all the possible minimum and maximum armor things too), ie #theme "animal tiger" for tiger, otherwise you'd see tigers bundled with serpents very often. You'll also probably want to add a claw attack to the tigers since I think they have both claw and bite in Dom3. I don't care which forum you post on, but I do prefer code tags instead of whole files since that way I can just copy paste the new stuff without worrying it replaces something I've changed recently. |
Re: UnitGen - Random nations with procedural sprites!
Thanks for the update.
Regarding #skipchance, thanks for letting me know. However, i dont plan on using it anytime soon since i actually had to create 4 batches of 10 nations until the tiger showed up. If at all, i need a way to increase the spawn. I asumme i can set the tiger to "animal tiger" and use "preferredmount tiger" in the nation files, or do new pref-mounts dont work, i.e. is it hardcoded for serpent, horse, boar and stuff ? Regarding min/max protection, am i right in assuming its referring to the base units prot values ? i.e. using only maxprot 15 will force the game to ONLY spawn this mount if the mounted unit has a prot no higher than 15 ? If so, what will it do if the mounted unit has a prot outside the mounts specified value ? Lastly, can you elaborate on the "naked unit" thingy again ? What exactly is wrong with it ? Do you mean the units price is too low and i need to add a certain to the mount ? Then, what is your stance on secondshape ? Horse units, when killed, dont spawn the horse. Lizards and snakes however create the animal unit once the rider is killed. How do YOU want it to be with tigers, jaguars, wyvern (and im going to add bears and nightmares later) ? Should they have a secondshape on death or not ? Can you be found in IRC or some messenger more regulary than on this forum ? Can you release a new version of spritegen with the fixed wyvern bug so i can continue adding things on a updated version ? |
Re: UnitGen - Random nations with procedural sprites!
Quote:
I am fairly confident that whatever you prefer in terms of hte secondshape will be fine; if it turns out to be unbalanceable it'll be changed. Naked/very lightly armored units get up to a 30% price decrease automatically because that rough idea is also present in baseline dom3. Light cav therefore automatically costs less than heavy cav and so on. Max/minprot are there so you can say that naked people shouldn't be riding heavily barded horses--currently horse cav is split up into light cav(unarmored horses) medium(like light cataphracts etc) and heavy, each with even their own equipment sets(to prevent 'naked guy with a lance' etc. Protection values generally conform to the actual protection, i.e. after base prot and armor have been taken into account. |
Re: UnitGen - Random nations with procedural sprites!
http://koti.kapsi.fi/elmokki/dom3/un...en_13_4_12.zip
I'll probably forget something but: - SpriteGen gets a x/y sliders for mount offsets. This is purely cosmetical and meant to help getting mount sprites to correct places. Won't happen for other items for now because that's slightly more problematic. - UnitGen accepts seeds. It should theoretically generate the same set of nations if you create a mod with same amount of nations and - Item #skipchances have been replaced with the #basechance commands which work like filters, ie if you don't specify anything item's weigth for randomizing is 1, if you specify something, that is used. And item has chance of weight/(all weights) to be chosen. - Tweaks. Bonus weapons seemed somewhat broken so I fixed them. Also gave Abysians a special feature which should make bonus weapons on them more common even with a bit heavier armor. - Only tengu commanders and sacreds get the lightning strike. This is a special racial command too and customizable - Added settings.txt where you can edit some settings. More editable stuff will probably come eventually. - Added a pile of mounts for humans by Ragnarok-X EDIT: Sacred commanders should also be able to get H1 occasionally. It crashes occasionally (but is very usable anyway since it isn't that common) on generation, gonna fix it later. |
All times are GMT -4. The time now is 08:38 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.