Could use some help: rulermod!

just a little heads up for those that might want it, im currently doing that ruler mod that i was planning for weeks now as i gather inspiration for how to continue my nordlings:

stil very WIP ofc. ill share more pics when available :slight_smile:

2 Likes

afbeelding

and its ingame… but its still thick as a brick and wont take orders. just like nobillity! /continues working

4 Likes

Could you explain what the mod does? ^^

can anyone enlighten me on how the footman AI works and what it has to do with task-groups? i can seem to figure it out (specifcally: why can i order a footman about, and not others, and how can i make it so my ruler can be told what to do? (footman style))

@Relyss maybe?

1 Like

currently add a centralised leader to a town. the idea is you get ONE of them. (probably by restricting the promotion item) think of them as a deluxe footman with some buffs for those around him, both in and outside of combat. the specifics though i’d like some ideas on :slight_smile: but currently im just doing the basics first.

1 Like

That sounds so cool! Almost like a Knight with buffs(?)

How about he could activate some potions mid-fight, so that we are forced to use the Herbalist more? Since the Herbalist is so underpowered atm

I was planning to give the herbalist something like that at a later stage, more tricky to do in my opinion. But certainly something I want to fiddle with down the line

1 Like

That sounds good! Keep us updated!

hmmm, what does the “roles” line in the ruler description says?
also wich job u used as a base to make this one?

ohh also, about having only one of this job, be carefull with the re-embark as you might end up with another one

to put it simpel, i dont mind if you want to do that with your re embark. people dont re embark that often and it takes LOOOONG

How about the ruler giving buffs to everybody they meet? Like a speed bonus for workers and inspiration for crafters. I mean, nothing’s more awe inspiring that nobility, right? Could the ruler be a walking appeal entity? :stuck_out_tongue:

3 Likes

if someone find a way to make a moving appeal entity i’ll be here to ask xD (but i would think more of an equipment)

is that not possible? i cant imagine why it wouldnt be?

i tried but couldn’t (my weapon has 100 appeal yet not counting in the appeal vision and doesn’t look to affect the ones around :frowning: but that’s for another post xD)
almost sure something is wrong with my codes :sweat:

well, to be fair your weapon ist the thing walking around. its just a .qb attached to a bone.
now if it gave your hearthling a buff that made the hearthling have the appeal…

but yes, back to leaders:
what ive got currently is here
https://github.com/Thahat/rulermod

but i still dont get how to not make it be stupid. so any hints are welcome

1 Like

hey @Wouter_Sikkema
your manifest is missing the controller:
“controllers”: {
“class:ruler”: “file(jobs/ruler/ruler.lua)”
:wink:
check if it works
that’ should fix the combat part
edit:
i think i saw some other code details related to that lua… and some other thing

1 Like

checking right now!

eeh you sure?

seems i did have it in?

oh wait fuck i see what you mean, it has to actually be IN the controllers brackets?


like so?

hmm that creates more problems. and doesnt solve things :confused:

errors, and if i promote a female hearthling they are in their undies… :confused:

release-864 (x64)[M]
c++ exception: Error in CompileScript calling "rulermod/jobs/ruler/ruler.lua": radiant/lib/util.lua:476: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
   [C]: in function 'create_controller'
   radiant/modules/commons.lua:286: in function 'create_controller'
   stonehearth/components/job/job_component.lua:320: in function 'promote_to'
   ...arth/ai/actions/change_job_using_talisman_action.lua:24: in function '_trigger_cb'
   radiant/modules/effects/effect_tracks.lua:113: in function 'fn'
   radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
   radiant/controllers/time_tracker_controller.lua:89: in function <radiant/controllers/time_tracker_controller.lua:89>
   [C]: in function 'xpcall'
   radiant/modules/commons.lua:73: in function 'xpcall'
   radiant/controllers/time_tracker_controller.lua:89: in function 'set_now'
   radiant/modules/gamestate.lua:9: in function 'set_now'
   radiant/server.lua:65: in function <radiant/server.lua:63>
release-864 (x64)[M]
...nehearth/services/server/job/job_info_controller.lua:352: attempt to call method 'get_job_level' (a nil value)
stack traceback:
	radiant/modules/commons.lua:53: in function 'report_traceback'
	radiant/modules/commons.lua:64: in function 'get_job_level'
	...nehearth/services/server/job/job_info_controller.lua:352: in function '_evaluate_highest_level'
	...nehearth/services/server/job/job_info_controller.lua:302: in function 'add_member'
	stonehearth/components/job/job_component.lua:347: in function 'promote_to'
	...arth/ai/actions/change_job_using_talisman_action.lua:24: in function '_trigger_cb'
	radiant/modules/effects/effect_tracks.lua:113: in function 'fn'
	radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
	radiant/controllers/time_tracker_controller.lua:89: in function <radiant/controllers/time_tracker_controller.lua:89>
	[C]: in function 'xpcall'
	radiant/modules/commons.lua:73: in function 'xpcall'
	radiant/controllers/time_tracker_controller.lua:89: in function 'set_now'
	radiant/modules/gamestate.lua:9: in function 'set_now'
	radiant/server.lua:65: in function <radiant/server.lua:63>
release-864 (x64)[M]
...nehearth/services/server/job/job_info_controller.lua:352: attempt to index a nil value
stack traceback:
	radiant/modules/commons.lua:53: in function 'report_traceback'
	radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
	...nehearth/services/server/job/job_info_controller.lua:352: in function '_evaluate_highest_level'
	...nehearth/services/server/job/job_info_controller.lua:302: in function 'add_member'
	stonehearth/components/job/job_component.lua:347: in function 'promote_to'
	...arth/ai/actions/change_job_using_talisman_action.lua:24: in function '_trigger_cb'
	radiant/modules/effects/effect_tracks.lua:113: in function 'fn'
	radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
	radiant/controllers/time_tracker_controller.lua:89: in function <radiant/controllers/time_tracker_controller.lua:89>
	[C]: in function 'xpcall'
	radiant/modules/commons.lua:73: in function 'xpcall'
	radiant/controllers/time_tracker_controller.lua:89: in function 'set_now'
	radiant/modules/gamestate.lua:9: in function 'set_now'
	radiant/server.lua:65: in function <radiant/server.lua:63>

holy !"#!"# i’ll check it

1 Like