0 Members and 1 Guest are viewing this topic.
How to use:In your java program (that is in the same directory as this), make a new map instance by typing:Map map = new Map(PathToMap);For instance, if you want to print the polygon count of ctf_Ash, do this:Map map = new Map("C:/Soldat/Maps/ctf_Ash.pms");System.out.println(map.getPolyCount());Class Definitions://////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\Map String getTitle() String getTexture() PMS_Color getTopColor() PMS_Color getBottomColor() int getJets() int getGrenades() int getMedKits() int getWeather() int getStepType() int getPolyCount() PMS_Polygon getPoly(int) PMS_Polygon[] getAllPolys() int getPropCount() PMS_Prop getProp(int) PMS_Prop[] getAllProps() int getSceneryCount() String getSceneryName(int) String[] getAllSceneryNames() int getDOSTime(int i) int[] getAllDOSTime() int getDOSDate(int i) int[] getAllDOSDate() int getColliderCount() PMS_Collider getCollider(int) PMS_Collider[] getAllColliders() int getSpawnCount() PMS_Spawn getSpawn(int i) PMS_Spawn[] getAllSpawns() int getWayPointCount() PMS_Waypoint getWayPoint(int) PMS_Waypoint[] getAllWayPoints()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Color Color getColor()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Collider boolean getActive() float getX() float getY() float getRadius()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Prop boolean getActive() int getPropStyle() int getWidth() int getHeight() float getX() float getY() float getRotation() float getScaleX() float getScaleY() int getAlpha() PMS_Color getPMS_Color() int getDrawBehind() String getDrawBehindString()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Vertex float getX() float getY() float getZ() float getRHW() PMS_Color getPMS_Color(); float getTU() float getTV()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Vector float getX() float getY() float getZ()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Polygon PMS_Vertex getVertex(int) PMS_Vector getPerp(int) int getPolyType() String getPolyTypeString()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Spawn boolean getActive() int getX() int getY() int getSpawnType() String getSpawnTypeString()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\PMS_Waypoint boolean getActive() int getX() int getY() int getID() boolean getLeft() boolean getRight() boolean getUp() boolean getDown() boolean getJet() int getPath() int getSpecialAction() String getSpecialActionString() int getC2() int getC3() int getNumConnections()//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\
Exception in thread "main" java.lang.IllegalArgumentException: Color parameter outside of expected range: Alpha Green Blue
Fixed.There is an issue with waypoints I need to get fixed, and until then they are disabled. For some reason when I view the waypoints in hex workshop (as well as in this program) they end abruptly some 50-100 waypoints before it is done. It can't be corrupt files because it happens with all of them.If anyone drastically needs waypoints then PM me and I'll get them fixed up somehow.I attached an image of the problem in hex workshop.
typedef struct tagPMS_SPAWNPOINT { BOOL active; UBYTE filler[3]; LONG x; LONG y; PMS_SPAWNTEAM team;} PMS_SPAWNPOINT;
#pragma enumsize(4) // 4 bytetypedef enum SPAWNTEAM { stGENERAL = 0, stALPHA, stBRAVO, stCHARLIE, stDELTA, stALPHA_FLAG, stBRAVO_FLAG, stGRENADES, stMEDKITS, stCLUSTERS, stVEST, stFLAMER, stBERSERKER, stPREDATOR, stYELLOW_FLAG, stRAMBO_BOW, stSTAT_GUN} PMS_SPAWNTEAM;