Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enabling/disabling schematics
#1
Has anyone else noticed an issue with enabling/disabling schematics in schematics.lua?  This isn't particularly a custom content question, but I'd like to know insofar as how it will apply to adding new schematics down the road, to a live server.

I've found recently that I can't comment out (or comment back in) schematics from schematics.lua and have them actually disappear or reappear in a character's schematic list, unless I do a database wipe.

For example, I'll comment out the Composite helmet.  Load up the server, log in with an armorsmith, and he's still got Composite in his list of available schematics.  (I haven't actually tried crafting it.)  I've even made a *new* armorsmith character after the lua change, and it too has the helmet in its schematics list.

But if I wipe the databases after making the lua change, then it will no longer appear in future armorsmiths' schematic lists.

And the same goes for re-enabling.  It won't come back until after a database wipe.

I know for a fact this was not the case a few years ago, but it's something I've been running into lately on the current code (Publish 8).

Any thoughts?  Others having this issue too, or is it just me?
Liakhara
Tarkin II Lead Developer
http://tarkin.org
 
Reply
#2
I bet the server only loads all the schematics awarded from the skills.iff file once and prob only loads it again if the database (whichever one is needed) is missing. I'm curious what would happen if you tried to craft it.

Maybe you could delete 1 database at a time and then restart it to try and figure out which database needs to be wiped. Might help identify the code spot that makes the behaviour for changing, or at the least help judge the magnatude of impact to a serverby adding in a new schematic (or perhaps a good strategy for how to save all the information you can, wipe that one portion and integrate the rest?) just some thoughts.
 
Reply
#3
I had thought of that, I believe there is a schematics database, but I don't know how deleting it would affect players on a live server who have draft schematics in their datapads or in factories, or learned loot schematics that they haven't crafted yet.
Liakhara
Tarkin II Lead Developer
http://tarkin.org
 
Reply
#4
Another thought I had was if you figure out where the code is that calls for and loads the schematics from the skills.iff, could you just write something that calls that and stores on player login and deletes the stored schematics when the player logs out?
 
Reply
#5
Do not delete your draft schematics DB on a live server. Any additional schematics your players have, from loot drops or quest rewards, as well as factory schematics, will all go poof.

...yeah, I did that. Oops.
 
Reply
#6
(2017-07-11, 02:54 PM)Pake Wrote: Another thought I had was if you figure out where the code is that calls for and loads the schematics from the skills.iff, could you just write something that calls that and stores on player login and deletes the stored schematics when the player logs out?

To be honest, I'm not skilled enough at coding, nor do I have enough beta testing time to try out something like this if I did, unfortunately.

Kind of just trying to figure out where this came from, because I know with 100% certainty we were able to add new schematics to our old server a few years ago, and now that doesn't appear to be an option.

@Halyn - thanks for the confirmation, I figured that's what would happen Sad I'm sorry you had to find out the hard way.
Liakhara
Tarkin II Lead Developer
http://tarkin.org
 
Reply
#7
What may help is trying a search for skills.iff. I believe this file is the one that shows where the schematics are awarded so you may be able to kinda follow the path to where the code is that calls it. Just a thought.

I did a quick search (at work so cant dig into this) and found the below files. hope it helps.

MMOCoreORB/src/server/zone/managers/player/PlayerManagerImplementation.cpp
MMOCoreORB/src/server/zone/managers/skill/SkillManager.cpp
MMOCoreORB/src/server/zone/managers/player/creation/PlayerCreationManager.cpp
 
Reply
#8
So I took a quick look around last night and noticed in ...src/server/objects/player/variables there's a few schematic files. Might be worth looking there actually.
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)