News:

Welcome to World of Banished!

Main Menu

Overwriting a Profession

Started by angainor88, May 13, 2018, 05:20:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angainor88

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

RedKetchup

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 .

angainor88

I just wanted to get 1 Cleric, just change the icons and some of the stringtable text.

Thank you for taking a look!

RedKetchup

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 .

angainor88

Aaaah! Thank you so much! You fixed my mess of coding!

I really appreciate all the help you give!