UI Modding question

So I’m trying to mod the new hearthling generation code, and that involves tweaking the daily report UI. I’m trying to add my own type of “Immigration Report Bulletin,” so I have a custom .js, .less, and .html file. In my manifest I have them added:

   "ui": {
      "html": [
      "js": [
      "less": [

This is the error I’m getting after clicking the “Daily Report” Notification:

Uncaught TypeError: createChildViews first argument must exist
TypeError: createChildViews first argument must exist
    at CoreView.extend.createChildView (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:43060:17)
    at App.ContainerView.Ember.ContainerView.extend.addView (http://radiant/stonehearth/ui/root/js/stonehearth/container_view.js:64:28)
    at SimpleClass.extend.showDialogView (http://radiant/stonehearth/ui/game/bulletin/bulletin_board.js:218:56)
    at HTMLDivElement.<anonymous> (http://radiant/stonehearth/ui/game/bulletin/bulletin_notification/base_notification.js:225:28)
    at HTMLDivElement.jQuery.event.dispatch (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:5095:9)
    at HTMLDivElement.elemData.handle (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:4766:46)

Any idea where this is coming from? I can’t firgure it out through google. :frowning:

I can provide any additional info anyone needs. (Paging the wonderful @yshan & @sdee). Thanks in advance!!

I’m interesting in doing ui modding too for making a fisherman class - did you get any joy with your ui modding? I could use some input. I’m just first trying to add the ability to create the fishing zone so need an extra zone added to the start menu, but not sure how to “add” the extra item in - not sure i can just mixinto js files, only json files?

I didn’t get much into UI modding as I didn’t know JS at the time, so I am afraid I won’t be much help to you :frowning: But I can say avoid overriding at all costs. Only when you need to.

Check how the zones for trappers and farms are added. I’m guessing that you don’t need to change the UI for it, as the UI should probably read from the json.

looking through the code i saw a few places where both json and lua is referenced for the zones drawn. So e.g. if I want to create a new type of zone for fishing that works different than existing zones, I can’t just add something on json, I’ll have to create the separate zone type logic as well. I’m just sorting out some legal stuff irl (ugly divorce :() then I’m going to really look into this. So excited about making a new class that works different and uses zones - could prove useful for future modders as a reference and perhaps even next version of the mod interface if it isn’t seamless enough.

Awesome! (Not the divorce stuff of course)

Keep me updated on your progress; since Bastioneers is on a hiatus, I’d love to help out in any way I can. I’ve dug into the JS and LUA a fair bit so I might be of some help. :smile:

1 Like

bring up the dead almost a year ago,

did you got time to figure this thing out?

also hoping your divorse went well and you are a brand new and happier person