Author Topic: Overwriting a Profession  (Read 340 times)

0 Members and 1 Guest are viewing this topic.

Offline angainor88

  • Trader
  • ****
  • Posts: 108
  • Country: us
Overwriting a Profession
« on: May 13, 2018, 05:20:17 PM »
I am trying to give the Cleric new icons and string table things for my project. I got it to make another profession labeled Cleric in addition to the old one, and it crashes the game whenever I click on my building.

I am kinda lost as to where to go from here... Any takers? I am linking a copy of my file. Thank in advance for looking at my terrible coding.

http://www.mediafire.com/file/zyucxcdagvbi5ge/BokaapMosque.7z

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9783
  • Country: ca
Re: Overwriting a Profession
« Reply #1 on: May 14, 2018, 08:44:09 AM »
i downloaded it but not checked yet. i have some errants to do today... i ll check this evening.
you said you did "another" cleric profession... was it really what you wanted ? to create a 2nd one ? or you wanted to just get 1, the original, and just change its icon ?

i think would be bad to get 2 copies of same profession with same "files naming" and cause a conflict. specially a special one with some "hidden" feature like "priest" and "teacher"

i ll check later on tonight, but if you can answer those questions about your real goal you succeeded/failed to accomplish.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline angainor88

  • Trader
  • ****
  • Posts: 108
  • Country: us
Re: Overwriting a Profession
« Reply #2 on: May 14, 2018, 04:55:59 PM »
I just wanted to get 1 Cleric, just change the icons and some of the stringtable text.

Thank you for taking a look!

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9783
  • Country: ca
Re: Overwriting a Profession
« Reply #3 on: May 14, 2018, 09:55:43 PM »
sorry for the little delay.... got to make errants and was very tired after that ... i slept for like 8 hours lol

i fixed all your issues:

first, if you want to use the community toolbar, things arent set at the right place so you can share it through  all your mods. It needs to be in Game and Dialog folders.
secundo, i fixed your profession (priest) overwrite. mainly you've got a double because you didnt setup the same right path as the vanilla game. so i changed the icon and some text.
tiertio, your building template didnt got a good UI, it had errors in it... i replaced it by a copy of the vanilla chapel. it was causing a crash everytime you were clicking on the building.

delete your mod folder and replace it by this one (attachment) with errors fixed. You just have to compile and package it.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline angainor88

  • Trader
  • ****
  • Posts: 108
  • Country: us
Re: Overwriting a Profession
« Reply #4 on: May 16, 2018, 05:56:41 PM »
Aaaah! Thank you so much! You fixed my mess of coding!

I really appreciate all the help you give!