Decrypting

Ideas, technology and contributions to Z modifications

Moderator: Brad

User avatar
knatsch
Psycho
Psycho
Posts: 6
Joined: 2005-07-22, 20:54
Location: Germany

Postby knatsch » 2006-02-22, 23:23

@Parlamenter:
Have you ever looked at the level.map format?
I thought about creating a new Level Editor, but the file seems to me heavily crypted.
I have already understood the object.dat and build.dat, but these were quite easy ;)

Greetings
User avatar
Parlamenter
Sergeant
Sergeant
Posts: 53
Joined: 2005-07-19, 09:47
Location: USSA

Postby Parlamenter » 2006-03-30, 15:54

If you want edit LEVELS.DAT just now you can do it in Hex Workshop with this file
LEVELS.HSL:

Code: Select all

#include "standard-types.hsl"
#pragma maxarray(65535);
#pragma enumsize(1)

typedef char file_name;

typedef enum terrain
{
	Desert		= 00,
	Arctic		= 01,
	City		= 02,
	Volcanic	= 03,
	Jungle		= 04
} terrain;

typedef enum unit
{
	Gun		= 00,
	Medium		= 01,
	Grunt		= 02,
	Tough		= 03,
	Sniper		= 04,
	Heavy		= 05,
	Psychos		= 06,
	Light		= 07,
	Missile		= 08,
	M_Missile	= 09,
	Gattling	= 10,
	Jeep		= 11,
	Truck		= 12,
	A_P_C		= 13,
	Howitzer	= 14,
	Fire_Truck	= 15,
	Crane		= 16,
	Pyros		= 17,
	Laser		= 18,
	
	Empty		= 255
} unit;


typedef struct level_def
{
	char level_name[20];

	file_name level_map[13];
	file_name robots_dat[13];
	file_name ai_dat[13];
	file_name preset_1_wal[13];
	file_name preset_2_wal[13];

	unit player_units[12];

	file_name object_dat[13];

	terrain	map_type;
	file_name mult_dat[13];
	ubyte unknown[8];

	file_name build_dat[13];
	file_name bridge_dat[13];

	ubyte empty_space[82];
} level_def;

typedef struct levels_file
{
  level_def levels[51];
} levels_file;
I think... you be interesting in player_units changing.
knatsch wrote:@Parlamenter:
Have you ever looked at the level.map format?
I thought about creating a new Level Editor, but the file seems to me heavily crypted.
I have already understood the object.dat and build.dat, but these were quite easy ;)
I have a lot of job to do in my life.
I didn’t look at level.map but if you know object.dat and build.dat structure post it here.
I’ll see it later.
:cheers:

Who is online

Users browsing this forum: No registered users and 1 guest