Joined: 17 Nov 2005, 02:43 Location: Raegquitting Spring on 04/24/12
It's quite irritating that plasma server doesn't automagically register maps uploaded and updated on springfiles, but in the interest of building a bridge and getting over it, how do I register maps on plasma server?
Move them out of maps, then move copy them (must copy not move) back to maps while ZKL is running, it will scan them, go to settings->show log to see the outcome.
Sometimes faulty lua prevents maps from being processed.
Basically when parsing mapoptions your checker wizbang thingy is crapping itself because mapoptions is empty (because I'm not using any of the mapoptions stuff). It should see a nil value and move on, not shit the bed.
Its one unitsync call that extracts all this information from the map:
Code:
[Serializable] [StructLayout(LayoutKind.Sequential)] public struct MapInfo { [MarshalAs(UnmanagedType.LPStr)] public string description; public int tidalStrength; public int gravity; public float maxMetal; public int extractorRadius; public int minWind; public int maxWind; public int width; public int height; public int posCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.Struct)] public StartPos[] positions;
[MarshalAs(UnmanagedType.LPStr)] public string author; }
And it fails. So I cannot work around it i need other fields too like author, description etc..
the plan is to add GetMapInfoCount.. but this isn't implemented yet. (currently there are the GetMap* functions like GetMapGravity), see http://springrts.com/mantis/view.php?id=2315
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum