Amnaa
June 13, 2018, 8:30pm
1
So, I’m doing my best to try and make a mod, but I’m hitting a wall. I’m kinda ok with everything else, but my hearthlings don’t want to transport the plant or move it into stockpile. There might even be too much stuff inside of the ghost file… Can somebody help, please?
{
"mixins": "stonehearth:mixins:placed_object",
"type": "entity",
"components": {
"model_variants": {
"default": {
"models": [
"file(adenium_magnificent.qb)"
]
}
},
"render_info": {
"scale": 0.13
},
"mob": {
"model_origin": {"x": -1, "y": 0, "z": 1},
"region_origin": { "x": -0.05, "y": 0, "z": 0.05},
"allow_vertical_adjacent": true
}
},
"entity_data": {
"stonehearth:catalog": {
"display_name": "Magnificent Adenium",
"description": "Survives just about everything.",
"icon": "file(adenium_magnificent.png)",
"material_tags": "decoration plant stockpile_decoration"
}
}
}
1 Like
That file alone is ok. Maybe it is somewhere else.
You can check your stonehearth.log file in the game folder for clues, errors are printed there.
Amnaa
June 13, 2018, 8:50pm
3
Hm… I think it says “unrecognized object”, but I’m not sure if it refers to me ordering the transport.
2018-06-13 22:43:00.432803 | server | 0 | mod stonehearth | Player 'player_1' joined
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Memory Stats: Finished Loading Simulation
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Total System Memory: 5.855 GB (6287114240 bytes)
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Current Memory Usage: 745.539 MB (781754368 bytes)
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Total Address Space: 8.000 TB (8796092891136 bytes)
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Available Address Space: 7.999 TB (8794747166720 bytes)
2018-06-13 22:43:00.432803 | server | 0 | sysinfo | Used Address Space: 1.253 GB (1345724416 bytes)
2018-06-13 22:43:00.687817 | server | 0 | ai.execution_frame | (13985 Frie Gwarin) [stonehearth:top] ai slow start is 0
2018-06-13 22:43:00.852827 | client | 0 | client.core | reporting client load progress 77.75%...
2018-06-13 22:43:01.009836 | client | 0 | client.core | reporting client load progress 80.5%...
2018-06-13 22:43:01.027837 | server | 0 | simulation.core | took 476 ms to update game state
2018-06-13 22:43:01.027837 | server | 1 | simulation.core | game loop exhausted before any jobs processed!
2018-06-13 22:43:01.168845 | client | 0 | client.core | reporting client load progress 83.25%...
2018-06-13 22:43:01.330853 | client | 0 | client.core | reporting client load progress 86%...
2018-06-13 22:43:01.528864 | client | 0 | client.core | reporting client load progress 88.75%...
2018-06-13 22:43:01.707874 | client | 0 | client.core | reporting client load progress 91.5%...
2018-06-13 22:43:01.925887 | client | 0 | client.core | reporting client load progress 94.25%...
2018-06-13 22:43:02.092896 | client | 0 | client.core | reporting client load progress 97%...
2018-06-13 22:43:02.604924 | client | 0 | client.core | reporting client load progress 99.75%...
2018-06-13 22:43:02.635926 | client | 0 | client.core | SetCurrentUIScreen to restart
2018-06-13 22:43:04.350022 | client | 0 | client.core | Changed UI Screen after load
2018-06-13 22:43:05.582091 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-06-13 22:43:05.583091 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-06-13 22:43:05.583091 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-06-13 22:43:05.787103 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:301 ack:301)
2018-06-13 22:43:05.838106 | server | 1 | simulation.remote_client | started buffering client updates. (seq:389 ack:301)
2018-06-13 22:43:06.117122 | client | 1 | lua.code | unrecognized object type 'boxed' in json_to_lua!
2018-06-13 22:43:06.118122 | client | 1 | lua.code | unrecognized object type 'boxed' in json_to_lua!
2018-06-13 22:43:06.242128 | server | 1 | lua.code | unrecognized object type 'boxed' in json_to_lua!
2018-06-13 22:43:06.243128 | server | 1 | lua.code | unrecognized object type 'boxed' in json_to_lua!
2018-06-13 22:43:06.293130 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:389 ack:389)
2018-06-13 22:43:22.881077error parsing json: Invalid JSON character detected (lo)
2018-06-13 22:43:23.602119 | server | 0 | simulation.core | took 136 ms to update game state
2018-06-13 22:43:23.602119 | server | 1 | simulation.core | game loop exhausted before any jobs processed!
2018-06-13 22:43:42.314188 | server | 1 | simulation.core | game loop exhausted before any jobs processed!
2018-06-13 22:44:06.812587 | server | 0 | simulation.core | took 106 ms to update game state
2018-06-13 22:44:06.812587 | server | 1 | simulation.core | game loop exhausted before any jobs processed!
2018-06-13 22:44:10.408791 | client | 0 | game_engine | window closed. exiting process
Amnaa
June 13, 2018, 8:58pm
4
Or is it the invalid character? I’m not sure. Here’s the main JSON.
{
"type": "entity",
"mixins" : "file(adenium_magnificent_ghost.json)",
"components" : {
"stonehearth:entity_forms" : {
"iconic_form" : "file(adenium_magnificent_iconic.json)",
"ghost_form" : "file(adenium_magnificent_ghost.json)",
"placeable_on_ground" : true
},
"region_collision_shape" : {
"region": [
{
"min" : { "x" : 0, "y" : 0, "z" : 0 },
"max" : { "x" : 1, "y" : 0, "z" : 1 }
}
]
}
},
"entity_data" : {
"stonehearth:net_worth" : {
"value_in_gold" : 20,
"rarity" : "common",
"shop_info" : {
"buyable" : true,
"sellable" : true,
"shopkeeper_level" : 2,
"shopkeeper_type" : "caravan"
}
},
"stonehearth:appeal": {
"appeal": 6
}
}
}
looks something like the same issue that @berutty had…
try first and if it works then
ohh also you might want to remove the “base mod” line to allow players to play without your mod too hahaha
some character might be exactly the same for txt programs but not for stonehearth engine
When you click on your plant, it has the buttons to move and undeploy?
How are you spawning it? Does it belong to you?
Amnaa
June 14, 2018, 4:46am
7
It does have the buttons and the ghost works properly. I do spawn it and the outline is orange.
Amnaa
June 14, 2018, 4:51am
8
Hmm… I’ll try following your post and see if that’s the problem.
Uhm, strange. Orange/yellow outline means a neutral object, that does not belong to you. How you spawned it? Through debug?
Any mods that could interfere?
Amnaa
June 14, 2018, 4:41pm
10
Disabled all mods, created a fresh world, they are still not into it. And I unintentionally lied, I spawn through debug and after stamping it into the world, the outline is white. It’s orange only when placing it, not after it gets placed.
I have already coded one more thing in this “mod”. It’s a craftable table. Hearthlings like this table and have no problems crafting it or moving it around.
Amnaa
June 14, 2018, 6:41pm
11
It most probably is going to be the same problem, but how did you manage to find and/or replace the rogue character? My computer has a different default localization, I might have written something in and it’s causing trouble now D: I got Notepadd++ with only english… I hope it helps.
just used another already working json and changed only the content between “” (texts for that item only) for that case (try with the jsons of the table you mentioned)
i was unable to identify wich character was but i found that the hexa versions of those txt were different
i can try to fix the json but for that i need the mod for testing
1 Like
Amnaa
June 14, 2018, 10:17pm
13
Oh my %A!#!g God! Hallelujah! It works! Now… where’s my wallet. I need a new mouse. This one stopped working
1 Like
hahahhah
yeeey! now we will have our plants sooner
1 Like