Modding problem

I am trying to create new items, and i am having always the same problem.

I cant fit the item in the shop's layout. The "UGBShopX_ShopLayout" files seem a little confusing to me. Either the item wont show up, or simply i cannot see any of the shop's items.

I have experimented a lot, but nothing seems to work.

Can anyone help?

2,152 views 8 replies
Reply #1 Top

You also have to modify the unit.bg file that is in the ugbshop folder to add a new item. You should see the pattern there for adding new items.

Reply #2 Top

Quoting Epiphenomenon, reply 1
You also have to modify the unit.bg file that is in the ugbshop folder to add a new item. You should see the pattern there for adding new items.

Yes i have moddified the unit file as well. But no matter what i do still the items wont show up.

In 1 item i am trying to add, the code for the layout file looks like this:

#Layout = {
#    {'Item_Artifact_110','Item_Artifact_020',},
#    {'Item_Artifact_040','Item_Artifact_050',},
#    {'Item_Consumable_160','Item_Artifact_090',},
#    {'Item_Artifact_010','Item_Artifact_060',},
#    {'Item_Artifact_120','Item_Artifact_080',},
#    {'Item_Artifact_100','Item_Artifact_070',},
#    {'Item_Artifact_130','                 ',},
#
#}

Layout[7][2] = 'Item_Artifact_211'

 

This is the modified file.

What am i missing?

Reply #3 Top

# means that it is commented out, that code won't have an effect. :D

 

Also, you have to start from 0. Computers count 0,1,2,3...

 

Which means that it should be:

Layout[6][1] = 'Item_Artifact_211'

Reply #4 Top

Hmm, I'll take a look at it. Until then, check out the mod posted halfway down on this page:

http://forums.demigodthegame.com/368896

Sorian's mod might be a good example, too.

I'm still figuring this stuff out too. :P I'll take a look at it!

Reply #5 Top

At first, i didnt use any #. but then i added them to make it work.

The Layout[6][1] = 'Item_Artifact_211' didnt work either.

Oh well.... i should give up i guess.

Reply #6 Top

Someone here will figure it out. Don't worry.

Can you tell us what specifically you're adding to specific files?

Reply #7 Top

Oh damn! i solved it.

There was a ' character that hadnt seen inside the display name. I dont know how the hell i missed that!!!

I feel like a blind noob.

But it was just a ' For god's sake! X|

Anyway im gonna post my mod soon.

And i am gonna continue modding like hell :grin:

Reply #8 Top

Good to hear! I've got some brand new Teleport Amulet favor items I'm working on, like being able to teleport to ENEMY buildings. :P