View Single Post
  #3  
Old 10-05-2016, 03:23 AM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Default

Quote:
Originally Posted by jahes64 View Post
Thanks for the guide.

Link of KB_DB_EDIT is dead. Please upload current version.
Okay, KB_DB_EDIT is here:

Quote:
Originally Posted by jahes64 View Post
In prologue campaign of demoness in DarkSide, last stack is positioned very badly that we can't fight it! How to correct it?
If you are really good with KB_DB_EDIT and deciphering the LOC file in question, you should be able to reposition units with it. I'd suggest starting with Daert and playing with m_vampire_start\m_vampire_start.embryos.loc. Fiddle with this file because it is very small and you can use it to learn a lot about the file structure by making changes and starting a new game since you can immediately see your changes. Also look specifically at embryo_0 through 2.

Here is what I have for embryo_2 (I changed to give you female vampires):

Code:
		{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 8 elements
		{
			{U}{rndid} = {2709136742}
			{A}{n} = {embryo_2}
			{A}{aa} = {army_vampire_woman}
			{U}{f} = {33}
			{U}{cnt} = {1}
			{Y}{ii0}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 5 elements
			{
				{X}{p} = {6666904200008044333388420000803F}
				{F}{a} = {0.72}
				{F}{s} = {1.00}
				{U}{u} = {50}
				{Y}{vp}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 0 elements
				{
				}
			}
			{Y}{aov}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 0 elements
			{
			}
			{Y}{e}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 8 elements
			{
				{W}{name} = {}
				{I}{jnt} = {-1}
				{U}{tdf} = {0}
				{Y}{choice}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 1 elements
				{
					{Y}{10}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 10 elements
					{
						{W}{name} = {??????}
						{U}{bod} = {1}
						{U}{hero} = {0}
						{U}{lead1} = {1000}
						{U}{lead2} = {2000}
						{A}{script} = {}
						{U}{disp} = {1}
						{U}{arra} = {1}
						{A}{beh} = {Joining}
						{Y}{troops}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 1 elements
						{
							{Y}{-N/A-}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{0} // 8 elements
							{
								{A}{races} = {}
								{A}{units} = {vampire_woman}
								{A}{level} = {}
								{A}{perc} = {100}
								{A}{kolvo} = {2}
								{U}{prob} = {10}
								{I}{ext} = {-1}
								{U}{fillt} = {0}
							}
						}
					}
				}
				{U}{chance} = {100}
				{U}{uid} = {3}
				{U}{wuid} = {1384780455}
				{A}{class} = {army}
			}
		}
Note that I *think* the position is controlled via:

Code:
				{X}{p} = {6666904200008044333388420000803F}
				{F}{a} = {0.72}
				{F}{s} = {1.00}
				{U}{u} = {50}
				{Y}{vp}, F_SORTED{0}, F_COMPACT_TAGS{1}, F_NONAMES{1} // 0 elements
				{
				}
Note that the really long hexidecimal value after {X}{p} I never figured out how to generate. In my H3B mod I just ignored it and it seems to have caused no harm.

I'm guessing that these two deal with position: {F}{a} and {F}{s}? I'm not certain, but you'll have to experiment to find out. If those don't do anything, then I have no idea where they'd be - you'll have to use the editor to add a unit, save the session, copy the LOC, move the unit, save the session, and do a file compare of the old and new decompiled LOC text files.

Quote:
Originally Posted by jahes64 View Post
Also how to load DarkSide maps in editor? I copied "darkside" folder from "sessions" folder of darkside's main directory to "sessions" folder of crossworlds's main directory, then started editor and chose "darkside", but all I got after choosing one of maps, was a crash!
The editor creates a new session under your Windows User Name and somewhere down in AppData or something like that. Launch the editor, create a new session, and then go find it on your hard drive. I don't have AP / CW installed right now, so I'll have to install them to verify where the stuff is located...

Once you find it, then you can load LOC files from there, but the editor does crash a lot so you have to have a lot of patience with it.

All be sure to read all posts in the King's Bounty Editor Forum if you haven't done so already.

Good luck!



Matt
Reply With Quote