View Poll Results: delete all weird texts?
yes 13 65.00%
no 7 35.00%
Voters: 20. You may not vote on this poll

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2009, 15:29   #16
kvdk
Alien #15
 
kvdk's Avatar
 
Join Date: Nov 2008
Location: In your head, stealing your secrets... oooh, a good one!
Posts: 6,401
kvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond repute
Quote:
Originally Posted by SaintAugustine View Post
Yeah I don't have a life. In comparison to you (and probably the general mass who play CO) I'm a freakin' genius. They call me the Hybrid-bot v2.0, I'm AI, what now?
and i'm an alien, i created humankind, so anything they created is mine, making you my property

your move next, dont try to outgeek me, i'm a perfect actor, and i dont even need the geek glasses to be perfect...
kvdk is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 15:40   #17
SaintAugustine
Banned
 
Join Date: Jul 2009
Location: In your pants
Posts: 1,196
SaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond repute
Quote:
Originally Posted by kvdk View Post
and i'm an alien, i created humankind, so anything they created is mine, making you my property

your move next, dont try to outgeek me, i'm a perfect actor, and i dont even need the geek glasses to be perfect...
Code:
#include "StdAfx.h"
#include "DataMap.h"

inline int POS2INDEX(int x, int y, int cx, int cy) 
{ 
	return x + (y * cx); 
}

void CDataMap::GetCell(int X, int Y, MapCell* lpCell)
{
	*lpCell = m_Cells[POS2INDEX(X, Y, m_Size.cx, m_Size.cy)];
}

bool CDataMap::InvalidCoordinate(int X, int Y)
{
	if (X >= this->m_Size.cx)
		return true;
	if (Y >= this->m_Size.cy)
		return true;
	if (X < 0)
		return true;
	if (Y < 0)
		return true;
	MapCell cell = m_Cells[POS2INDEX(X, Y, m_Size.cx, m_Size.cy)];
	if (cell.NoAccess)
		return true;
	return false;
}

CDataMap::CDataMap(DWORD ID, char* szFile)
{
	char header[8];
	int cx, cy;

	m_MapID = ID;
	FILE* fp = fopen(szFile, "rb");
	ensure(fp != NULL);

	fread(header, 1, 8, fp);
	fread(m_PuzzleFile, 1, 260, fp);
	fread(&cx, 4, 1, fp);
	fread(&cy, 4, 1, fp);

	m_Size.cx = cx;
	m_Size.cy = cy;
	m_Cells = new MapCell[m_Size.cx * m_Size.cy];

	// CELL DATA
	int rowptr;
	for (int y = 0; y < m_Size.cy; y++)
	{
		for (int x = 0; x < m_Size.cx; x++)
		{
			WORD noaccess;
			WORD surface;
			WORD height;
			fread(&noaccess, sizeof(WORD), 1, fp);
			fread(&surface, sizeof(WORD), 1, fp);
			fread(&height, sizeof(WORD), 1, fp);

			MapCell cell;
			cell.Height = height;
			cell.SurfaceType = surface;
			cell.NoAccess = (noaccess != 0);

			m_Cells[POS2INDEX(x, y, m_Size.cx, m_Size.cy)] = cell;
		}
		fread(&rowptr, 4, 1, fp); // this is a checksum based on MapCell
	}

	// PORTALS
	fread(&PortalCount, 4, 1, fp);
	m_Portals = new MapPortal[PortalCount];
	fread(m_Portals, sizeof(MapPortal), PortalCount, fp);

	// OBJECTS
	vector<CSceneFile*> Scenes;
	int mapobj_cnt;
	fread(&mapobj_cnt, 4, 1, fp);
	for (int i = 0; i < mapobj_cnt; i++)
	{
		int objtype;
		fread(&objtype, 4, 1, fp);
		if (objtype == 1) // MAP_OBJTYPE_SCENE
		{
			CSceneFile* scene = new CSceneFile(fp);
			Scenes.push_back(scene);
		}
		else if (objtype == 4) // MAP_OBBTYPE_ANIMATION
		{
			char szANIFile[260];
			char szTGAFile[128];
			POINT Location;
			int Unknown[5];
			fread(szANIFile, 1, 260, fp);
			fread(szTGAFile, 1, 128, fp);
			fread(&Location, sizeof(Location), 1, fp);
			fread(Unknown, 4, 5, fp);
		}
		else if (objtype == 15) // MAP_OBTYPE_SOUND
		{
			char szSoundFile[260];
			POINT Location;
			int Duration;
			int Interval;
			fread(szSoundFile, 1, 260, fp);
			fread(&Location, sizeof(Location), 1, fp);
			fread(&Duration, 4, 1, fp);
			fread(&Interval, 4, 1, fp);
		}
		else if (objtype == 10) // MAP_OBJTYPE_GRAPHIC
		{
			char szGraphicFile[64];
			POINT Location;
			fread(szGraphicFile, 64, 1, fp);
			fread(&Location, sizeof(Location), 1, fp);
		}
		else
		{
			critical_error("Unknown DMAP Footer Type")
		}
	}

	// SCENE
	vector<CSceneFile::Part>::iterator p_it;
	vector<CSceneFile*>::iterator it;
	for (it = Scenes.begin(); it < Scenes.end(); it++)
	{
		CSceneFile* pScene = *it;
		for (p_it = pScene->GetParts().begin(); p_it < pScene->GetParts().end(); p_it++)
		{
			CSceneFile::Part& part = *p_it;
			for (int x = 0; x < part.Size.x; x++)
			{
				for (int y = 0; y < part.Size.y; y++)
				{
					POINT realpt;
					realpt.x = pScene->GetLocation().x + part.StartPosition.x + x - part.Size.x;
					realpt.y = pScene->GetLocation().y + part.StartPosition.y + y - part.Size.y;
					int cell_idx = POS2INDEX(realpt.x, realpt.y, m_Size.cx, m_Size.cy);
					int part_idx = POS2INDEX(x, y, part.Size.x, part.Size.y);
					
					m_Cells[cell_idx].NoAccess = part.NoAccess[part_idx];
				}
			}
		}
		delete pScene;
	}

	fclose(fp);
}

CDataMap::~CDataMap(void)
{
	delete m_Cells;
	delete m_Portals;
}
What now. I'm actually interested to see what you make of this (yes it's by me).
SaintAugustine is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 17:39   #18
kvdk
Alien #15
 
kvdk's Avatar
 
Join Date: Nov 2008
Location: In your head, stealing your secrets... oooh, a good one!
Posts: 6,401
kvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond repute
its not the complete code, but its in C, and by the looks of it, a function to define a position on a grid..
kvdk is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 17:41   #19
Clenk~V.8
Banned
 
Join Date: Jun 2009
Posts: 1,303
Clenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond repute
Quote:
Originally Posted by kvdk View Post
its not the complete code, but its in C, and by the looks of it, a function to define a position on a grid..
It is actually c++.

And why the hell do you use a precompiled header?
Clenk~V.8 is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 17:59   #20
kvdk
Alien #15
 
kvdk's Avatar
 
Join Date: Nov 2008
Location: In your head, stealing your secrets... oooh, a good one!
Posts: 6,401
kvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond reputekvdk has a reputation beyond repute
Quote:
Originally Posted by Clenk~V.8 View Post
It is actually c++.

And why the hell do you use a precompiled header?
not that into C to see the diferences between all the versions

just saw that it included .h files, and everything was either a value of void

typical C stuff
kvdk is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 18:01   #21
Clenk~V.8
Banned
 
Join Date: Jun 2009
Posts: 1,303
Clenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond repute
Quote:
Originally Posted by kvdk View Post
not that into C to see the diferences between all the versions

just saw that it included .h files, and everything was either a value of void

typical C stuff
It has a class, therefor C++.
Clenk~V.8 is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 18:40   #22
Farau
Banned
 
Join Date: Aug 2009
Location: Narnia!!
Posts: 4,288
Farau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond reputeFarau has a reputation beyond repute
C#
I learned that in school =]
Farau is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 19:35   #23
SaintAugustine
Banned
 
Join Date: Jul 2009
Location: In your pants
Posts: 1,196
SaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond repute
It's C++.
Check this path, C:\Program Files\Conquer 2.0\map\map\*.dmap
lol.

Quote:
And why the hell do you use a precompiled header?
Lazy to disable using the precompiled header. Comes in nicely to disable the compilers qqing of obsolete C-functions. But I <3 the C-libraries.

Code:
#define _CRT_SECURE_NO_WARNINGS
#include "targetver.h"
#include <windows.h>
#include <stdio.h>
#include "Mask.h"

#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "winmm.lib")

#define critical_error(x) { MessageBoxA(NULL, x, "CRITICAL ERROR", MB_OK); ExitProcess(0); }
#define ensure(x) if (!(x)) critical_error(#x)
#define alert(x) MessageBoxA(NULL, x, "Alert", MB_OK)
I love how this code as all put us on common ground and stopped the arguing LOL.

Last edited by SaintAugustine; 09-05-2009 at 19:40.
SaintAugustine is offline   Reply With Quote Share with Facebook
Old 09-05-2009, 21:24   #24
Clenk~V.8
Banned
 
Join Date: Jun 2009
Posts: 1,303
Clenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond reputeClenk~V.8 has a reputation beyond repute
Quote:
Originally Posted by SaintAugustine View Post
It's C++.
Check this path, C:\Program Files\Conquer 2.0\map\map\*.dmap
lol.



Lazy to disable using the precompiled header. Comes in nicely to disable the compilers qqing of obsolete C-functions. But I <3 the C-libraries.

Code:
#define _CRT_SECURE_NO_WARNINGS
#include "targetver.h"
#include <windows.h>
#include <stdio.h>
#include "Mask.h"

#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "winmm.lib")

#define critical_error(x) { MessageBoxA(NULL, x, "CRITICAL ERROR", MB_OK); ExitProcess(0); }
#define ensure(x) if (!(x)) critical_error(#x)
#define alert(x) MessageBoxA(NULL, x, "Alert", MB_OK)
I love how this code as all put us on common ground and stopped the arguing LOL.
I dislike precompiled headers. They are a headache but they do solve the circular inclusion problem.
Clenk~V.8 is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 04:10   #25
elisa
Registered User
 
elisa's Avatar
 
Join Date: Apr 2007
Location: Ireland
Posts: 16,742
elisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond repute
Quote:
Originally Posted by SaintAugustine View Post
If you really want to enemy them so badly spend 5 freakin' minutes looking up the characters on a character map. They're all values lower than 255 (decimal) or 0xFF (hex), thats not much opposed to the 65535 values in the unicode-character-set (double byte / WORD, 0xFFFF).

Stop being lazy.
And you stop being smartass, cos it's not lazyness
What if i am not a computer genius freak geek? What if i can speak 9 languages but i have no idea what u just said, because thats not what im interested of?
I wouldn't spend "5 freakin' minutes" doing that. It would take me a few weeks to get what u said, cos im not into computers the way u are.

I like the suggestion, makes it more simple.
__________________
my vlogs channel

elisa - 130-->137-->138 archer--> archer-->archer
FIRST archer 2nd rb 137 in our server(4th of May 2009)
FIRST archer 138 in our server (19th Oct 2010)

Quit Conquer Jan 2011.
elisa is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 04:19   #26
Darkcloud.
Banned
 
Join Date: Apr 2008
Location: New Zealand.
Posts: 2,602
Darkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond reputeDarkcloud. has a reputation beyond repute
Send a message via ICQ to Darkcloud. Send a message via AIM to Darkcloud. Send a message via MSN to Darkcloud. Send a message via Yahoo to Darkcloud.
Quote:
Originally Posted by elisa View Post
And you stop being smartass, cos it's not lazyness
What if i am not a computer genius freak geek? What if i can speak 9 languages but i have no idea what u just said, because thats not what im interested of?
I wouldn't spend "5 freakin' minutes" doing that. It would take me a few weeks to get what u said, cos im not into computers the way u are.

I like the suggestion, makes it more simple.
^
Darkcloud. is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 05:45   #27
*~panda~*
Banned
 
Join Date: Mar 2008
Posts: 12,981
*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute*~panda~* has a reputation beyond repute
no cuz it makes my guild names less sexy
*~panda~* is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 09:12   #28
SaintAugustine
Banned
 
Join Date: Jul 2009
Location: In your pants
Posts: 1,196
SaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond reputeSaintAugustine has a reputation beyond repute
Quote:
Originally Posted by elisa View Post
And you stop being smartass, cos it's not lazyness
What if i am not a computer genius freak geek? What if i can speak 9 languages but i have no idea what u just said, because thats not what im interested of?
I wouldn't spend "5 freakin' minutes" doing that. It would take me a few weeks to get what u said, cos im not into computers the way u are.

I like the suggestion, makes it more simple.
I'm sorry if your incapable of Googling the term "ANSI Character Map" or "Character Set" and then browsing through the list for the character you want. Then typing in an alt-code to get it. People shouldn't have to suffer just because there's people who aren't of equal understanding. That's like saying we should dumb down all the classes in the world so people with mental deformities can fit in.

QQ moar. <3
SaintAugustine is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 09:43   #29
Lord_Foo_V3
Banned
 
Join Date: Aug 2009
Location: Flanders
Posts: 625
Lord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond reputeLord_Foo_V3 has a reputation beyond repute
Quote:
Originally Posted by elisa View Post
And you stop being smartass, cos it's not lazyness
What if i am not a computer genius freak geek? What if i can speak 9 languages but i have no idea what u just said, because thats not what im interested of?
I wouldn't spend "5 freakin' minutes" doing that. It would take me a few weeks to get what u said, cos im not into computers the way u are.

I like the suggestion, makes it more simple.
9 languages? Seriously? Which?
Lord_Foo_V3 is offline   Reply With Quote Share with Facebook
Old 09-06-2009, 09:54   #30
elisa
Registered User
 
elisa's Avatar
 
Join Date: Apr 2007
Location: Ireland
Posts: 16,742
elisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond reputeelisa has a reputation beyond repute
Quote:
Originally Posted by Lord_Foo_V3 View Post
9 languages? Seriously? Which?
i Pm-ed those.
but basically what i wanted to say is...if someone knows something as a knowledge, it doesn't mean we are all supposed to know the same thing. If one is good at tennis, it don't mean he certainly stands a chance in swimming.. u know what i mean.
__________________
my vlogs channel

elisa - 130-->137-->138 archer--> archer-->archer
FIRST archer 2nd rb 137 in our server(4th of May 2009)
FIRST archer 138 in our server (19th Oct 2010)

Quit Conquer Jan 2011.

Last edited by elisa; 09-06-2009 at 10:00.
elisa is offline   Reply With Quote Share with Facebook
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:30.