I would like the ability to: Spawn alien CVs in a playfield from blueprint (with drone carrier behavior) Spawn alien space stations in a playfield (With drone base behavior) Detect when a CV/Space station was destroyed Conquer a base (swap its faction to alien, kill all associated neutral NPCs and begin spawning Alien NPCs) List all Playfields List all structures on a playfield Assert that a structure is a drone base with specified properties If I had this, then I could implement everything needed for suggestion here: http://empyriononline.com/threads/enemy-escalation.11229/
You have the ability of about half of your list. The API currently supports the following through various requests and events: The following are the only missing:
really? you can set a structure to alien and swap out its spawner behavior? what is the protocol for that? Also, I don't know how you would set the drone base property with an API request
I believe you can set a structure to alien, but you can not modify block behaviour in a structure. I also didn't notice the assertion for drone bases. I don't believe that is available.
While were requesting Features. Can we get the following added to each data class: Code: public string ToString() { return String.Format("{0}<{1}>", this.GetType().FullName, JsonUtility.ToJson(this)); } JsonUtility is part of UnityEngine BTW.
Whoa. That makes my life slightly easier. Beilieve it or not, I never considered looking into unityengine for utilities.
Yep, basically when you build you can include everything in unityengine.dll, mif.dll, and protobuf-protocol.dll for free since the game already loads them. I've started working on an API bridge to make people able to write plugins in python and reload them without bouncing the server. and being able to spit out json is incredibly helpful.
Heya guys, with this api system and empyrions current code. Is it a possibility to create timer events. Any api function that can record say, the time it took a player to get from point a to point b, and to list that time publically ? Seeing more and more ideas for race tracks or races, and such an event would be good for recording the results.
Hey, with the Coordinate request you should be able to do that. There is no Timer itself yet. But that should be easy to manage over a mod. Our EAH tool for example has a coordinate log that logs the coordinates of each player and structure every x seconds. Out of such data you could calculate possible speed and so on.
how did you limit the possibility of entering the planet of belonging to a faction? It is possible to catch the event on the server through the API?
Hey, yes just request a player update or use one of the events Player Changed Playfield or EnityPlayfield changed (names might be different). The rest you have to build manually.
good question I imagine you could grab the player coordinates of when they change playfields then teleport the player back to those coordinates when you detect that they are on an "invalid playfield" you could probably check periodically using ticktime.