Midonik - unit json (json edit, bonuslist)

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.

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

Postby Midonik » Sun Sep 24, 2017 8:57 pm

Attachments
unit_human_broad_swordman.json
(4.13 KiB) Downloaded 7 times
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Postby 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.
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby 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?
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Postby 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.
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby Midonik » Mon Sep 25, 2017 6:44 pm

Attachments
unit_human_broad_swordman.json
(4.13 KiB) Downloaded 5 times
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

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

not good, but i will show you.
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby 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.)
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby Midonik » Tue Sep 26, 2017 4:53 pm

Attachments
unit_human_broad_swordman.json
(4.17 KiB) Downloaded 7 times
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

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

still not right...
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

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

Hi, are u working on it?
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby 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 5 times
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Postby 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.
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby Midonik » Sat Sep 30, 2017 12:05 pm

Did you look at last one? Everythink is good there thought.
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Postby Midonik » Sat Sep 30, 2017 12:07 pm

Is it ok?
Attachments
unit_human_broad_swordman.json
(4.17 KiB) Downloaded 5 times
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

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

Postby 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: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

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

How is it going?
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

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

Hi, are are you about finish this lecture?
Stratego (dev)
Site Admin
 
Posts: 5458
Joined: Fri Apr 25, 2014 9:28 pm

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

Postby Midonik » Thu Oct 12, 2017 5:49 pm

I'll do that later,xmas mayby.
Sorry if I make misstake. I'm from Poland.
Midonik
 
Posts: 1541
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Previous

Return to Under the Hood studies

Who is online

Users browsing this forum: No registered users and 1 guest