Page 2 of 2

Re: Midonik - unit json (json edit, bonuslist)

Posted: Sun Sep 24, 2017 8:57 pm
by Midonik

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 5:16 am
by Stratego (dev)
comments:
- filename does not fit - this is ok
- unit typename has an extra space chartacter (will not work this way) - this is not yet fixed
- the image definition is not right, it is for a 64x32 (tall) unit. - this is still not right, check an existing unit that is 32x32
- i have not seend the "requires" meaning it can only be buildt if a tech is invented. - you put it in, but here again a trailing space - are u using microsoft Word? do not use Word that puts extra space everywhere..
- bonuslist U_BULDINGS_UNIT_BATTERING_RAM this is surely a non existant category name :), please use names that are in the categories list (see categories FAQ) - this is not right, category names needs tobe under "categories" unti types needs to be undet unitTypes list. check an other json that has both.

(generally true: all CAPITAL lettered ID or StringID or typename is an important ID that must be exactly spelled - so use only copy+paste to use them) - this is important, extra spaces are also not allowed.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 6:29 pm
by Midonik
I think I fixed some thinks... Also,what category name in bonus list should it be? Unit_siege_machnies?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 6:33 pm
by Stratego (dev)
no, you need to specify the same: not by category but by unit type: the battering ram.

there are many samples how to do it, search the library - or you can check the "Unit Design - unit property sheet" there are also samples that has different bonus settings.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 6:44 pm
by Midonik

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 7:04 pm
by Stratego (dev)
not good, but i will show you.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Sep 25, 2017 7:13 pm
by Stratego (dev)
here,
- the blue ones defines category reference for the given "modifier" value
- the red one defines unit type reference for the given "modifier" value

"trnBonusList":[
{"modifier":1, "unitList":{"categories":["U_OTHER_BUILDINGS"],"unitTypes":["UNIT_BATTERING_RAM"]}},
{"modifier":2, "unitList":{"categories":["U_MEGA_BUILDINGS"]}},
{"modifier":7, "unitList":{"categories":["U_FORTIFIED_BUILDINGS"]}}
],

use this as bonus list.

also please fix the rest (eg. in json the unit typename still has an extra SPACE character.)

Re: Midonik - unit json (json edit, bonuslist)

Posted: Tue Sep 26, 2017 4:53 pm
by Midonik

Re: Midonik - unit json (json edit, bonuslist)

Posted: Tue Sep 26, 2017 8:09 pm
by Stratego (dev)
still not right...

Re: Midonik - unit json (json edit, bonuslist)

Posted: Thu Sep 28, 2017 5:37 am
by Stratego (dev)
Hi, are u working on it?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Thu Sep 28, 2017 6:01 am
by Midonik
I take a small break. I fixed extra space thought. What else?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Thu Sep 28, 2017 6:46 am
by Stratego (dev)
Please check back all my comments and fix all, and post result after all is fixed. Thanks.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Sat Sep 30, 2017 12:05 pm
by Midonik
Did you look at last one? Everythink is good there thought.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Sat Sep 30, 2017 12:07 pm
by Midonik
Is it ok?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Sat Sep 30, 2017 1:23 pm
by Stratego (dev)
the image is still not right.
check a 32x32 unit and use that.

Re: Midonik - unit json (json edit, bonuslist)

Posted: Fri Oct 06, 2017 6:06 am
by Stratego (dev)
How is it going?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Mon Oct 09, 2017 5:46 pm
by Stratego (dev)
Hi, are are you about finish this lecture?

Re: Midonik - unit json (json edit, bonuslist)

Posted: Thu Oct 12, 2017 5:49 pm
by Midonik
I'll do that later,xmas mayby.

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Mon Dec 04, 2017 7:20 pm
by Midonik
Something is better,it have to!

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Sat Dec 09, 2017 9:45 pm
by Stratego (dev)
seems almost good
- minor thing: "convertPossibility": should be set to 0 not null
- the image size definition is still for a 64px unit, we need no overlapping part, you need to find a 32px unit definition and use that as reference.

this part:

Code: Select all

"visuals":[
      
      {
                  "imgName":"32_unit_broad_swordman.png",
                  "type":"DEFAULT",
                  "shiftIndicatorsDown":0,
                  "typeExtra":0.0,
                  "imgColumns":1,
                  "imageDefParts":[
      	                   {
      	                      "cropToRect":{"top":0, "left":0,"bottom":32,"right":32},
      	                      "layer":"OVERLAPS",
      	                      "shiftCol":0,
      	                      "shiftRow":0,
      	                      "clickable":false
      	                   },
    	                   {
      	                      "cropToRect":{"top":0,"left":0,"bottom":32,"right":32},
      	                      "layer":"UNITS",
      	                      "shiftCol":0,
      	                      "shiftRow":0,
      	                      "clickable":true
      	                   }
                  ]
         }
      
         
         ]

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Mon Dec 11, 2017 4:27 pm
by Midonik
Daniel?

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Mon Dec 11, 2017 5:59 pm
by Stratego (dev)
these is still double section.
please check a 32x32 unit, do u have a sample of such?

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Mon Dec 11, 2017 6:54 pm
by Midonik
Yes.

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Tue Dec 12, 2017 6:20 am
by Midonik
Oh,I didnt notice. Is it correct now,Daniel?

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Tue Dec 12, 2017 6:02 pm
by Stratego (dev)
almost!

you left an open-close tag there, that will cause error.

i suggest replacing the whole "visuals":[...] section with a 32px sample.
and always do this, dont try to make it manually - i wouldnt be able to by heart.

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Wed Dec 13, 2017 4:38 pm
by Midonik
Daniel? I think its good.

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Wed Dec 13, 2017 9:23 pm
by Stratego (dev)
seems good! will chk in game too

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Tue Dec 26, 2017 10:55 am
by Midonik
Does it work? And whats next?

Re: Midonik - unit json 1(json edit, bonuslist)

Posted: Tue Dec 26, 2017 11:19 am
by Stratego (dev)
oh, i forgot to chk in game .
you can work on the sounds file while i check. thanks

Re: Midonik - unit json 1(json edit, bonuslist, jsonizing)

Posted: Wed Dec 27, 2017 7:38 am
by Stratego (dev)
there were these errors that i have fixed:
- EFFECT_POISONED_ARROWS naming was wrong with an extra space: "EFFECT _POISONED_ARROWS"
- image name was wrong with an extra space: "32_unit_broad_swordman.png "
- the tech reference was mistyped: TECH_UPGRADE_UNIT_BROAD_SWORDMAN instead of TECH_UPGRADE_UNIT_BROAD_SWORDSMAN - please use "copy+paste" never write references manually

all is fixed now, and in game - thanks!

also here is the fixed json