Experience for Buildings


building gets xp from working and level up

Content
1 year, 2 days ago
1.1
1.98K
Combat Mining Manufacturing

b [fixing]Warptorio2

1 year, 14 days ago

I'm getting an issue when playing with Warptorio 2 / Warptorio 2 Expansion. Experience for entities when placed on the platform breaks after a warp, they no longer gain experience, but their levels and bonuses will remain. When something is picked up and placed back down the levels completely reset, however entities that are placed off of the platform will behave normally.

1 year, 14 days ago
(updated 1 year, 14 days ago)

fixed @ 0.0.33

1 year, 14 days ago

Awesome! I wasn't expecting a patch so soon. Labs still seem to be a little broken, in that if I pick them up immediately after a warp, they will still lose their levels. They do now gain experience after a warp, and if I research anything to get them experience then the levels will stay after a pickup. Everything I looked at apart from the labs and that I could, (fresh game) seems to be working fine. Thank you for the quick patch and awesome mod.

1 year, 14 days ago

dang, forgot about the labs and drills, they have a custom exp.

i thank you for reporting!
will look about those pesky labs

1 year, 14 days ago

don't know how warptorio works, as a player, you can warp back to old warpzones?

1 year, 14 days ago

I don't think so, at least skimming through the tech doesn't say anything about revisiting anywhere, and I personally haven't been to the same place twice.

1 year, 14 days ago

fixed on 0.0.35

1 year, 14 days ago
(updated 1 year, 13 days ago)

I had 2 errors between warptorio and exp for buildings:
1) when energy for staircase upgrade was researched critical error if the harvester was deployed (it is being re-called when tech is finished). Recalling it manually before tech was finished prevented that.
2) few zones later, on warp i got error:
The mod Warptorio2 (1.3.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_tick (ID 0)
The mod Experience for buildings (0.0.35) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event xp-for-buildings::on_player_changed_surface (ID 53)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__xp-for-buildings
/control.lua:514: in function 'SetStoreCount'
xp-for-buildings/control.lua:567: in function <xp-for-buildings/control.lua:564>
stack traceback:
[C]: in function 'teleport'
warptorio2/control_main.lua:1012: in function 'Warp'
warptorio2/control_main.lua:861: in function 'Warpout'
warptorio2/control_main_helpers.lua:235: in function 'b'
warptorio2/lib/lib_control.lua:281: in function <warptorio2/lib/lib_control.lua:281>'

EDIT: as found out the issue was due to some miners being left on previous warpzone. Allowing the platform to leave without me was not deleting the zone and all was working fine. picking miners before leaving worked as well

3) about details of warptorio: there is end game tech that allows you to set a hope planet, that you can go back to, all other warpzones are not accessible.

EDIT: PS: seems as exp works fine for me. All factory floor entities gets exp as expected.

1 year, 13 days ago

Unfortunately a lot of the initial problems with experience are back again. I currently only have the Warp Factory Floor unlocked but I noticed that if I move from the Factory Floor to the Warp Platform everything on the Factory Floor breaks. The buildings on the Warp Platform (surface level) work just fine moving from floor to floor and while warping. I'm not sure if you have to set these different floors in your mod but there are a few different floors you might need to account for.

Just in case, here's a list. Hope I didn't miss any lol.

Warp Platform - Warp Platform Turret North East / South East / South West / North West - Warp Rail North East / South East / South West / North West
Warp Factory Floor - Warp Factory Giga North / East/ South / West
Warp Harvester Floor - Warp Harvester East / West Platform
Warp Boiler Floor - Warp Boiler Giga Floor North / East/ South / West

I'll be honest I haven't gotten either the Giga Floor or Rail upgrades before so I'm not sure if they're actually different mechanically or not, though I doubt it. I believe they're just size increases and additional logistics for teleporters. If someone else knows by all means correct me if I'm wrong. The rest might need to be included. Also the Harvester Floor has its own area you can place buildings on (Warp Harvester East / West Platform) that are teleported with their respective West / East teleporters.

1 year, 13 days ago

I've found some weird behaviour.
Seems like some entities are getting exp when they should not. Like I've made my first refinery, and after placing it it was lev 14 already. I seem to have too much lev 30 turrets.

But overall I have a lot of fun with your mod, thanks for making it.

1 year, 13 days ago
(updated 1 year, 13 days ago)

I've found some weird behaviour.
Seems like some entities are getting exp when they should not. Like I've made my first refinery, and after placing it it was lev 14 already. I seem to have too much lev 30 turrets.

But overall I have a lot of fun with your mod, thanks for making it.

may be two things:

  • check your baseExp,
  • when you remove an object, its exp is stored for be used when you re-build.

as surfaces keep changing, all existing building exp are saved, then transferred to the new surface.

this will take few days to test properly, and i'll need help from you guys who plays that mod

1 year, 13 days ago
(updated 1 year, 13 days ago)

Unfortunately a lot of the initial problems with experience are back again. I currently only have the Warp Factory Floor unlocked but I noticed that if I move from the Factory Floor to the Warp Platform everything on the Factory Floor breaks. The buildings on the Warp Platform (surface level) work just fine moving from floor to floor and while warping. I'm not sure if you have to set these different floors in your mod but there are a few different floors you might need to account for.

Just in case, here's a list. Hope I didn't miss any lol.

Warp Platform - Warp Platform Turret North East / South East / South West / North West - Warp Rail North East / South East / South West / North West
Warp Factory Floor - Warp Factory Giga North / East/ South / West
Warp Harvester Floor - Warp Harvester East / West Platform
Warp Boiler Floor - Warp Boiler Giga Floor North / East/ South / West

I'll be honest I haven't gotten either the Giga Floor or Rail upgrades before so I'm not sure if they're actually different mechanically or not, though I doubt it. I believe they're just size increases and additional logistics for teleporters. If someone else knows by all means correct me if I'm wrong. The rest might need to be included. Also the Harvester Floor has its own area you can place buildings on (Warp Harvester East / West Platform) that are teleported with their respective West / East teleporters.

i knew that already, but i need time to implement properly on all scenarios plus i don't know how change between surfaces on warptorio2
it's hard to fix anything without guides, and the mod doesn't explain that on the main page :sweat:

edit: ... discovered right now, that you need to walk on stairs.... was testing on sandbox... this was a huge discovery for me

1 year, 13 days ago

I had 2 errors between warptorio and exp for buildings:
1) when energy for staircase upgrade was researched critical error if the harvester was deployed (it is being re-called when tech is finished). Recalling it manually before tech was finished prevented that.
2) few zones later, on warp i got error:
The mod Warptorio2 (1.3.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_tick (ID 0)
The mod Experience for buildings (0.0.35) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event xp-for-buildings::on_player_changed_surface (ID 53)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__xp-for-buildings
/control.lua:514: in function 'SetStoreCount'
xp-for-buildings/control.lua:567: in function <xp-for-buildings/control.lua:564>
stack traceback:
[C]: in function 'teleport'
warptorio2/control_main.lua:1012: in function 'Warp'
warptorio2/control_main.lua:861: in function 'Warpout'
warptorio2/control_main_helpers.lua:235: in function 'b'
warptorio2/lib/lib_control.lua:281: in function <warptorio2/lib/lib_control.lua:281>'

EDIT: as found out the issue was due to some miners being left on previous warpzone. Allowing the platform to leave without me was not deleting the zone and all was working fine. picking miners before leaving worked as well

3) about details of warptorio: there is end game tech that allows you to set a hope planet, that you can go back to, all other warpzones are not accessible.

EDIT: PS: seems as exp works fine for me. All factory floor entities gets exp as expected.

ill try fixing, but needs a savegame for better outcome

1 year, 13 days ago

been working on this compatibility there's alot of variables

currently i cannot recommend using this mod with warptorio, because it will dupe experience,
if this doesn't bother you may continue using, it'll take few days to fully implement without bugs

1 year, 10 days ago

Playing multiplayer with this mod and Warptorio alongside a friend - getting a similarly non-recoverable error when completing the "Warp Platform Stairs Energy Upgrade 1" research.

I have a save from a few minutes before that research completes, if that would be helpful - let me know how best to send that to you if you want.

Here's the full message the error gives:

The mod Experience for buildings (0.0.38) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event xp-for-buildings::on_research_finished (ID 18)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__xp-for-buildings
/control.lua:674: in function <xp-for-buildings/control.lua:671>

New response