Jump to content


  • Posts

  • Joined

  • Last visited

AstronIsTaken's Achievements

  1. Simplest scenario: 1. Developer (me or someone working on similar tools) provides either lua code to interested Player or shares preconfigured programming board somewhere in game. 2. Player approaches programming board and activates it 3. LUA code reads player ID and fetches their active skills 4. LUA outputs map of skill to value to console. Skill here is skill name used in game, some id or code whichever DU decides to give us) 5. Player copy-pastes output from console into a field on external tool (e.g. du-craft.net) 6. Player uses tool to figure out what resources, factory units etc required for whatever they want to produce. Currently it's done by player manually (see screenshot) and updating it is a headache: player needs to remember what skills got improved since last time. Possible in-game API that would allow it (note: I'm not writing LUA code regularly): <json> getPlayerSkills(<int> pid) - returns all acquired player skills (with 1+ level) Example of return: { "Products.Basic Product Refining.Al-Fe Alloy": 2, "Products.Uncommon Product Refining.Efficiency": 3, "Products.Uncommon Product Refining.Stainless Steel": 2 } Note: using here arbitrary skill code (used in my tool). It can be anything as long as we as tool developers can map it to in-game skill. Optional useful methods: <json> getPlayerSkills(<int> pid, <string> skill_category) - returns all acquired player skills for category Example of use: getPlayerSkills(somePlayerId, "Products"); <int> getPlayerSkill(<int> pid, <string> skill_code) - returns skill level (0-5) Example of use: getPlayerSkill(somePlayerId, "Products.Basic Product Refining.Al-Fe Alloy")
  2. Thanks for clarification! In this case I want to request this feature, one way or another
  3. Can you give an example what database.getPlayer(<int> pid) returns? Will it return information about skills? If not, please add it to this or different method. It would allow to greatly improve resources like du-craft.net which I maintain
  • Create New...