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

Here i will list the apprentices and their learning tasks, so others also can follow how it goes.
Please DONT POST HERE any solutions on the given task earlier than the apprentice, you can ask questions from him tough.
Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Sun Sep 24, 2017 8:57 pm

Attachments
unit_human_broad_swordman.json
(4.13 KiB) Downloaded 42 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Sep 25, 2017 5:16 am

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.

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Mon Sep 25, 2017 6:29 pm

I think I fixed some thinks... Also,what category name in bonus list should it be? Unit_siege_machnies?
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Sep 25, 2017 6:33 pm

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.

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Mon Sep 25, 2017 6:44 pm

Attachments
unit_human_broad_swordman.json
(4.13 KiB) Downloaded 35 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Sep 25, 2017 7:04 pm

not good, but i will show you.

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Sep 25, 2017 7:13 pm

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.)

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Tue Sep 26, 2017 4:53 pm

Attachments
unit_human_broad_swordman.json
(4.17 KiB) Downloaded 36 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Tue Sep 26, 2017 8:09 pm

still not right...

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Thu Sep 28, 2017 5:37 am

Hi, are u working on it?

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Thu Sep 28, 2017 6:01 am

I take a small break. I fixed extra space thought. What else?
Attachments
unit_human_broad_swordman.json
(4.17 KiB) Downloaded 39 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Thu Sep 28, 2017 6:46 am

Please check back all my comments and fix all, and post result after all is fixed. Thanks.

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Sat Sep 30, 2017 12:05 pm

Did you look at last one? Everythink is good there thought.
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Sat Sep 30, 2017 12:07 pm

Is it ok?
Attachments
unit_human_broad_swordman.json
(4.17 KiB) Downloaded 40 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Sat Sep 30, 2017 1:23 pm

the image is still not right.
check a 32x32 unit and use that.

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Fri Oct 06, 2017 6:06 am

How is it going?

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Oct 09, 2017 5:46 pm

Hi, are are you about finish this lecture?

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Thu Oct 12, 2017 5:49 pm

I'll do that later,xmas mayby.
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Mon Dec 04, 2017 7:20 pm

Something is better,it have to!
Attachments
unit_human_broad_swordman.json
(4.16 KiB) Downloaded 31 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Sat Dec 09, 2017 9:45 pm

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
      	                   }
                  ]
         }
      
         
         ]

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Mon Dec 11, 2017 4:27 pm

Daniel?
Attachments
unit_human_broad_swordman.json
(4.16 KiB) Downloaded 35 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Mon Dec 11, 2017 5:59 pm

these is still double section.
please check a 32x32 unit, do u have a sample of such?

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Mon Dec 11, 2017 6:54 pm

Yes.
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Tue Dec 12, 2017 6:20 am

Oh,I didnt notice. Is it correct now,Daniel?
Attachments
unit_human_broad_swordman.json
(3.93 KiB) Downloaded 30 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Tue Dec 12, 2017 6:02 pm

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.

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Wed Dec 13, 2017 4:38 pm

Daniel? I think its good.
Attachments
unit_human_broad_swordman.json
(3.76 KiB) Downloaded 31 times
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Wed Dec 13, 2017 9:23 pm

seems good! will chk in game too

Midonik
Posts: 2461
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Post by Midonik » Tue Dec 26, 2017 10:55 am

Does it work? And whats next?
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Tue Dec 26, 2017 11:19 am

oh, i forgot to chk in game .
you can work on the sounds file while i check. thanks

Stratego (dev)
Site Admin
Posts: 6721
Joined: Fri Apr 25, 2014 9:28 pm

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

Post by Stratego (dev) » Wed Dec 27, 2017 7:38 am

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
Attachments
unit_human_broad_swordman.json
(3.77 KiB) Downloaded 23 times

Post Reply

Return to “Under the Hood studies”