Belfry777 - unit json 1(edit and bonuslist) PASSED

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

Belfry777 - unit json 1(edit and bonuslist) PASSED

Post by Stratego (dev) » Thu Dec 28, 2017 11:33 pm

Here is your first lecture: here is a aow unit json, change it to have
- change to 12 attack power,
- and +100% bonus agsainst aircraft carriers
- and +200% bonus agsainst battleships
- and +200% bonus against heavy tanks
Attachments
unit_ger_inf_mortar.json
(3.58 KiB) Downloaded 31 times

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Wed Jan 31, 2018 1:28 am

ah how do you open it?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
COOLguy
Posts: 3973
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by COOLguy » Wed Jan 31, 2018 5:36 pm

You can use a simple text editor like Notepad
Thanks!
Josh

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Tue Feb 27, 2018 1:48 am

So how do you add bonuslist?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Tue Feb 27, 2018 1:50 am

In modifier 1.8? or the one under this one.
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

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

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Stratego (dev) » Tue Feb 27, 2018 5:51 am

the modifier is the bonus value, but checj the samples in faq

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Sun May 06, 2018 12:19 am

okay I think I got it all thanks to "ThePussInboots!"
Attachments
unit_ger_inf_mortar.json
(4.18 KiB) Downloaded 17 times
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

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

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Stratego (dev) » Mon May 07, 2018 8:44 pm

it seems correct but ther indentation waís ruined. what editor have u used?

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Mon May 07, 2018 10:50 pm

I have used Gene which is a simple text editor. What went wrong?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

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

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Stratego (dev) » Tue May 08, 2018 5:34 am

all one lined bonuses got expanded to multiline.
gene is not texteditor but json editor. dont use it with aow/aof/aos. use textpad on pc or totalcommander on phone.
(however in any new alternatives - where i dont need to edit jsons :) you can use genie so u can get "uglyfied" appearance of json structure :) :) )

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Sat Jun 02, 2018 10:16 pm

Dose it now work?
Attachments
unit_ger_inf_mortar.json
(4.18 KiB) Downloaded 5 times
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Post by Belfry777 » Mon Jun 18, 2018 10:44 pm

Finished!
Attachments
unit_us_inf_mortar.json
(3.81 KiB) Downloaded 1 time
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
Puss_in_Boots
Posts: 1757
Joined: Fri Apr 21, 2017 1:23 am
Location: Fairy Tales and Television.

Re: Belfry777 - unit json 1(edit and bonuslist) PASSED

Post by Puss_in_Boots » Thu Jul 05, 2018 6:04 am

Congratulations buddy, I hope helping other forumers out does not go against Daniel's teachings or practice courses if you will.
Wish we could celebrate, only the most kind regards to you Belfry777! :D

It actually did take a good while.
RED, WHITE and BLUE!

User avatar
Belfry777
Posts: 1491
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist) PASSED

Post by Belfry777 » Sun Jul 08, 2018 7:46 pm

I know! Thanks for all of your help boots.
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

Post Reply

Return to “Under the Hood studies”