User Name
Password

Go Back   Planetarion Forums > Search Forums
Register FAQ Members List Calendar Arcade Today's Posts

Showing results 1 to 90 of 90
Search took 0.01 seconds.
Search: Posts Made By: Pitchfork
Forum: Programming and Discussion 6 Aug 2003, 19:46
Replies: 10
Views: 2,990
Posted By Pitchfork
this will lead back to BASICS' spaghetti code....

this will lead back to BASICS' spaghetti code. This construct is too similar to goto's (which will work in C as well btw). Plus imho it increases readability of code, because the "break"-way u don't...
Forum: Programming and Discussion 5 Aug 2003, 14:53
Replies: 10
Views: 2,990
Posted By Pitchfork
something; if(test) { do something; } else {...

something;
if(test) { do something; }
else { something else;
if(another test) { do something; }
else { something to finish it off with; }
}


using a do { ... } if you don't wanna loop...
Forum: Programming and Discussion 30 Jun 2003, 12:58
Replies: 20
Views: 6,596
Posted By Pitchfork
anything in your error_log by chance? There...

anything in your error_log by chance? There should be a line, if it fails to load something.
Forum: Planetarion Discussions 17 Jun 2003, 12:45
Replies: 16
Views: 3,436
Posted By Pitchfork
This ad up there

Am I the first one to notice that this banner displayed above this board still announces r9 signups? Maybe this should be changed to 9.5 and I would add that it's free. (I suppose it's displayed on...
Forum: Planetarion Discussions 17 Jun 2003, 12:41
Replies: 4
Views: 3,081
Posted By Pitchfork
I meant reducing the fleetslots of the free...

I meant reducing the fleetslots of the free planets. This will imho give the freebies an idea of how the game works, let them play in the 'real' PA-Universe and doesn't let them disturb the game of...
Forum: Planetarion Discussions 17 Jun 2003, 12:26
Replies: 4
Views: 3,081
Posted By Pitchfork
I recently thought about that issue, too. We had...

I recently thought about that issue, too. We had this 3M score cap a few rounds ago and it turned out to be used as farms/defence bitches. So what about reducing the available fleetslots to 1? This...
Forum: Planetarion Discussions 11 Jun 2003, 12:57
Replies: 79
Views: 8,644
Posted By Pitchfork
I didn't want to imply that u are getting paid...

I didn't want to imply that u are getting paid for what u do. My point is more, that u as a member of pa crew should do something else than coding another toolkit (eg. improve AH or something) when...
Forum: Planetarion Discussions 11 Jun 2003, 10:52
Replies: 79
Views: 8,644
Posted By Pitchfork
afaik Bayes' Theories were more about probability...

afaik Bayes' Theories were more about probability based upon prior measurements. I'm not quite sure, if it applies to this problem, but it could be worth a try. You'll need a recursive algorithm with...
Forum: Programming and Discussion 7 Jun 2003, 21:37
Replies: 6
Views: 2,334
Posted By Pitchfork
A MS written windows emulator running on linux?...

A MS written windows emulator running on linux? Very unlikely. There are some windows emulators for linux, some are really good, but afaik there's none from MS.
Forum: Programming and Discussion 22 May 2003, 11:39
Replies: 7
Views: 3,227
Posted By Pitchfork
won't you have to hold a copy of that on every...

won't you have to hold a copy of that on every machine then? Or at least hold it in a shared folder?

I guess majordomo (http://www.greatcircle.com/majordomo/) is what you're looking for.
Forum: Programming and Discussion 28 Apr 2003, 11:25
Replies: 14
Views: 4,548
Posted By Pitchfork
U will need to CloseHandle(HANDLE hObject) all...

U will need to CloseHandle(HANDLE hObject) all open handles to a thread in order to remove the thread-object from memory. That means u will probably create memory leaks, when u use a single handle...
Forum: Programming and Discussion 27 Apr 2003, 18:20
Replies: 14
Views: 4,548
Posted By Pitchfork
I'm not 100% sure, but I think, there's no way. ...

I'm not 100% sure, but I think, there's no way.

why not use a global function for that?

something like:


class SComSrv {
friend UINT acceptConnectionThread(LPVOID pParam); // to assure u...
Forum: General Discussions 15 Apr 2003, 20:20
Replies: 1
Views: 2,408
Posted By Pitchfork
<insert reply here>

<insert reply here>
Forum: Programming and Discussion 15 Apr 2003, 17:04
Replies: 30
Views: 4,008
Posted By Pitchfork
hmz, mine kept crashing about once per hour, was...

hmz, mine kept crashing about once per hour, was a 3.something alpha though
Forum: Programming and Discussion 15 Apr 2003, 16:57
Replies: 30
Views: 4,008
Posted By Pitchfork
So indeed it does more or less. But did you ever...

So indeed it does more or less. But did you ever tried to use a mySQL Alpha? I did once...

I have to apologize for bein outdated six days, but heh, I don't use mySql :p
Forum: Programming and Discussion 15 Apr 2003, 14:10
Replies: 30
Views: 4,008
Posted By Pitchfork
No Subqueries in MySQL unfortunately :(

No Subqueries in MySQL unfortunately :(
Forum: Planetarion Discussions 15 Apr 2003, 13:56
Replies: 16
Views: 3,687
Posted By Pitchfork
Forum: Programming and Discussion 15 Apr 2003, 08:33
Replies: 30
Views: 4,008
Posted By Pitchfork
I thought about trying it, but I stuck to ...

I thought about trying it, but I stuck to postgreSQL ;)
Forum: Programming and Discussion 12 Apr 2003, 12:57
Replies: 30
Views: 4,008
Posted By Pitchfork
:D

:D
Forum: Programming and Discussion 12 Apr 2003, 12:46
Replies: 30
Views: 4,008
Posted By Pitchfork
That's it, I read the planetfile into memory,...

That's it, I read the planetfile into memory, then do a few qsorts, then use postgresql's COPY FROM stdin function (similar to mysql's read data infile or sumthing), pretty fast ;)
Forum: General Discussions 10 Apr 2003, 15:47
Replies: 12
Views: 2,485
Posted By Pitchfork
4 rooms

4 rooms
Forum: General Discussions 3 Apr 2003, 15:03
Replies: 21
Views: 3,044
Posted By Pitchfork
yes I do, why?

yes I do, why?
Forum: Planetarion Discussions 3 Apr 2003, 13:17
Replies: 16
Views: 3,219
Posted By Pitchfork
well, it shouldn't be that difficult to calculate...

well, it shouldn't be that difficult to calculate combat's into a temp table and commit changes after everything is finished... This would require coding, though :D
Forum: General Discussions 3 Apr 2003, 12:05
Replies: 21
Views: 3,044
Posted By Pitchfork
prove?

prove?
Forum: General Discussions 3 Apr 2003, 11:04
Replies: 5
Views: 2,480
Posted By Pitchfork
VxD's are Virtual Device Drivers, you should have...

VxD's are Virtual Device Drivers, you should have the .vxd that causes the crash printed out somewhere on the bluescreen, try to figure out to which device it belongs and reinstall the driver. (if it...
Forum: General Discussions 3 Apr 2003, 10:55
Replies: 27
Views: 3,251
Posted By Pitchfork
didn't, what's my prize then?

didn't, what's my prize then?
Forum: General Discussions 3 Apr 2003, 10:50
Replies: 27
Views: 3,251
Posted By Pitchfork
well, I'll surrender the car to my mother and...

well, I'll surrender the car to my mother and friend and go f*cking the girl :p
Forum: General Discussions 3 Apr 2003, 10:47
Replies: 21
Views: 3,044
Posted By Pitchfork
I got one at the inguinal (hope that's right ;))...

I got one at the inguinal (hope that's right ;)) and yes, this one hurted, but it's really worth it :D
Forum: Planetarion Discussions 2 Apr 2003, 02:39
Replies: 19
Views: 3,420
Posted By Pitchfork
everyone should be able to remember his own...

everyone should be able to remember his own timezone-letter and that PA's running Z-Time... Counting from A-Z isn't that difficult then... (you have to mind Juliett, though :D)
Forum: Planetarion Discussions 2 Apr 2003, 02:33
Replies: 35
Views: 4,183
Posted By Pitchfork
well, BST == GMT + 1 is equal to BST != GMT,...

well, BST == GMT + 1 is equal to BST != GMT, isn't it? If you have some amount of apples and someone else has one more than you, you don't have equal amounts... :D
Forum: Planetarion Discussions 1 Apr 2003, 13:30
Replies: 35
Views: 4,183
Posted By Pitchfork
right, != usually means not equal in c-stlye...

right, != usually means not equal in c-stlye programming languages.

CEST meanst Central Europe Summer Time,

refer
http://www.timeanddate.com/time/abbreviations.html
Forum: Planetarion Discussions 1 Apr 2003, 08:53
Replies: 19
Views: 3,420
Posted By Pitchfork
yeah, at least someone noticed it :p well,...

yeah, at least someone noticed it :p

well, btw, just see it the military way, GMT, also known as Zulu-Time is standard for any operation of joint forces. And as PA is a war-game with ppl from...
Forum: Planetarion Discussions 1 Apr 2003, 07:49
Replies: 35
Views: 4,183
Posted By Pitchfork
I is not behind, btw, it wasn't changed to BST,...

I is not behind, btw, it wasn't changed to BST, though, but it is right, because GMT does not have daylight saving.
Forum: Alliance Discussions 31 Mar 2003, 23:34
Replies: 26
Views: 4,930
Posted By Pitchfork
April Fool's joke? :D

April Fool's joke? :D
Forum: Strategic Discussions 23 Mar 2003, 00:42
Replies: 22
Views: 3,161
Posted By Pitchfork
broadswords ;)

broadswords ;)
Forum: Strategic Discussions 16 Mar 2003, 01:02
Replies: 4
Views: 2,749
Posted By Pitchfork
well, I attacked this morning, too, but all I got...

well, I attacked this morning, too, but all I got was 3 roids, someone else was faster :/

yesterdays attack was better, I got around 15 roids out of that ;)
Forum: Strategic Discussions 16 Mar 2003, 00:55
Replies: 4
Views: 2,749
Posted By Pitchfork
jepp, just launched :p

jepp, just launched :p
Forum: Planetarion Discussions 15 Mar 2003, 18:53
Replies: 21
Views: 4,448
Posted By Pitchfork
I know another one...

I know another one (http://tot-tools.pilgerer.org/) :p
It's still not completely finished, but we're working hard, at least the search functions should work ;)
Forum: Planetarion Discussions 15 Mar 2003, 17:22
Replies: 11
Views: 2,755
Posted By Pitchfork
wrong board?...

wrong board? (http://pirate.planetarion.com/forumdisplay.php?s=&forumid=64)
Forum: Planetarion Discussions 12 Mar 2003, 18:03
Replies: 3
Views: 2,991
Posted By Pitchfork
It's not that bad, I just saw it when my db...

It's not that bad, I just saw it when my db refused to create a unique index on planetnames and was wondering. Btw, in my dumps is only one duplicate name and this one does not differ in case. I...
Forum: Planetarion Discussions 12 Mar 2003, 13:18
Replies: 3
Views: 2,991
Posted By Pitchfork
Question duplicate planetname

There is a duplicate planetname at least in the dumps, they should be unique right?
Forum: Programming and Discussion 11 Mar 2003, 21:54
Replies: 15
Views: 3,521
Posted By Pitchfork
complete history ofc, that means last 24 ticks +...

complete history ofc, that means last 24 ticks + 2 ticks per day for last week + 1 tick per day from the beginning
Forum: Programming and Discussion 11 Mar 2003, 20:36
Replies: 15
Views: 3,521
Posted By Pitchfork
Sorry, I don't believe that. With exile tracking...

Sorry, I don't believe that. With exile tracking I mean, that I can tell you where a planet (if exiled) has been before plus I do store the maximum roid/score amount of a planet, so you have to...
Forum: Programming and Discussion 11 Mar 2003, 17:39
Replies: 15
Views: 3,521
Posted By Pitchfork
I solved that issue in C, read the dumpfile, sort...

I solved that issue in C, read the dumpfile, sort it in memory then COPY FROM stdin into PostgreSQL, one complete update run (that means updating history tables with(!) exile tracking) takes me...
Forum: Planetarion Discussions 11 Mar 2003, 08:03
Replies: 51
Views: 7,054
Posted By Pitchfork
Having a look at it, it has serious problems,...

Having a look at it, it has serious problems, dunno if they are related to the galaxy in question though
Forum: Planetarion Discussions 11 Mar 2003, 07:57
Replies: 21
Views: 3,135
Posted By Pitchfork
There were 4360 planets in the last planet dump.

There were 4360 planets in the last planet dump.
Forum: Programming and Discussion 10 Mar 2003, 09:12
Replies: 15
Views: 3,521
Posted By Pitchfork
And then u got what? :p

And then u got what?


:p
Forum: Programming and Discussion 10 Mar 2003, 08:30
Replies: 15
Views: 3,521
Posted By Pitchfork
u could do SELECT ... ORDER BY score DESC; ...

u could do SELECT ... ORDER BY score DESC;

Then you can count which row you are displaying. Another posibillity is:

SELECT COUNT(*) AS rank FROM planets WHERE score > $thisscore;

This will...
Forum: General Discussions 6 Mar 2003, 14:46
Replies: 4
Views: 2,847
Posted By Pitchfork
Talking nice one, hrhr

nice one, hrhr
Forum: Programming and Discussion 6 Mar 2003, 14:19
Replies: 15
Views: 3,263
Posted By Pitchfork
BEGIN; <insert your insert-statements here> ...

BEGIN;

<insert your insert-statements here>

COMMIT;

Should solve that. :)
Forum: Programming and Discussion 6 Mar 2003, 13:16
Replies: 15
Views: 3,263
Posted By Pitchfork
I am not sure about MySQL's foreign key...

I am not sure about MySQL's foreign key behaviour, because I tend to use PostgreSQL, but from what I read here (http://www.mysql.com/doc/en/example-Foreign_keys.html) something like

CREATE TABLE...
Forum: Programming and Discussion 6 Mar 2003, 12:40
Replies: 15
Views: 3,263
Posted By Pitchfork
Re: MySQL badness

I'm not quite sure, what you mean? Is the key from table X a foreign key in table Y? And what relation is that?
Forum: General Discussions 4 Mar 2003, 12:05
Replies: 20
Views: 2,935
Posted By Pitchfork
u mean after destroying it?

u mean after destroying it?
Forum: Programming and Discussion 2 Mar 2003, 05:55
Replies: 8
Views: 2,852
Posted By Pitchfork
yep

yep
Forum: Planetarion Discussions 28 Feb 2003, 12:14
Replies: 14
Views: 3,307
Posted By Pitchfork
imho they were only too lazy to implement this,...

imho they were only too lazy to implement this, so I won't hope for such a function in r9
Forum: Alliance Discussions 27 Feb 2003, 17:51
Replies: 30
Views: 4,425
Posted By Pitchfork
I counted them three times, there are 10

I counted them three times, there are 10
Forum: General Discussions 27 Feb 2003, 15:56
Replies: 22
Views: 3,471
Posted By Pitchfork
atomic even, atomar is german, I'm not really...

atomic even, atomar is german, I'm not really awake ;)
Forum: Alliance Discussions 27 Feb 2003, 15:52
Replies: 30
Views: 4,425
Posted By Pitchfork
but funny :D

but funny :D
Forum: Planetarion Discussions 27 Feb 2003, 15:50
Replies: 37
Views: 5,781
Posted By Pitchfork
Re: Gfx - 2 parts

hey, I do like the Zik design most, Terran looks cheap, you're right, Xan is too much green for my flavour and Cat is too dark
Forum: Planetarion Discussions 27 Feb 2003, 15:45
Replies: 14
Views: 3,307
Posted By Pitchfork
Hey, they had an explanation for that :p ...

Hey, they had an explanation for that :p
Something like: "There are so many parallels, we don't want to have the MoCs spammed with mails."

:D
Forum: General Discussions 27 Feb 2003, 15:42
Replies: 22
Views: 3,471
Posted By Pitchfork
the ring = atomar bomb ?

the ring = atomar bomb ?
Forum: General Discussions 27 Feb 2003, 14:35
Replies: 34
Views: 4,747
Posted By Pitchfork
Welle Erdball - Die Computer verlassen die Welt...

Welle Erdball - Die Computer verlassen die Welt 23:09
Forum: Planetarion Discussions 20 Feb 2003, 19:45
Replies: 62
Views: 6,865
Posted By Pitchfork
yes, but you have to let your bot 'learn' the...

yes, but you have to let your bot 'learn' the answer assigned to every checksum.

anyway, it's not that hard to write a program that actually 'reads' the question, some simple OCR software would be...
Forum: Programming and Discussion 14 Feb 2003, 14:50
Replies: 10
Views: 3,018
Posted By Pitchfork
well, the main difference between static_cast and...

well, the main difference between static_cast and dynamic_cast is, that dynamic_cast performs a runtime check, whether the operation is valid and static_cast doesn't. That means:


class A { ......
Forum: Programming and Discussion 12 Feb 2003, 02:33
Replies: 10
Views: 3,018
Posted By Pitchfork
np :)

np :)
Forum: Programming and Discussion 11 Feb 2003, 10:40
Replies: 11
Views: 2,566
Posted By Pitchfork
find: // // End session management // ...

find:

//
// End session management
//

below add:

if ($userdata['user_level'] != 1)
{
Forum: Programming and Discussion 11 Feb 2003, 10:17
Replies: 10
Views: 3,018
Posted By Pitchfork
struct node { ...

struct node {
struct node *bnext;
short btype; // You may also use dynamic_cast for determining of type, but I don't like the idea...
Forum: Hardware and Tech Support 7 Feb 2003, 12:08
Replies: 7
Views: 5,854
Posted By Pitchfork
my smtp-server is 192.168.6.1 :p

my smtp-server is 192.168.6.1 :p
Forum: Programming and Discussion 30 Jan 2003, 11:20
Replies: 23
Views: 3,474
Posted By Pitchfork
If your constructor works as a constructor is...

If your constructor works as a constructor is supposed to work, you can ofc do: this->children[0] = new CTerrainNode(whatever);



If you can assure that if a CTerrainNode is not an endnode all...
Forum: Programming and Discussion 30 Jan 2003, 10:34
Replies: 23
Views: 3,474
Posted By Pitchfork
Re: C++: member classes of the same type

CTerrainNode *children[4]; //the four children of this node. Only applies if this is NOT an endnode
Forum: Programming and Discussion 28 Jan 2003, 10:41
Replies: 12
Views: 3,907
Posted By Pitchfork
No, it is a local variable and that's why in the...

No, it is a local variable and that's why in the stack frame. If you want to have it on heap you have to allocate it with new or malloc.
Forum: Programming and Discussion 28 Jan 2003, 09:49
Replies: 12
Views: 3,907
Posted By Pitchfork
Re: MS Visual C++: stack overflow when calling function

terrain.loadTerrain("terrain.raw");

bool CTerrain::loadTerrain(char* filename)
{ //it doesn't even come here
unsigned char *terra[TERRAINSIZE*TERRAINSIZE] = new...
Forum: Planetarion Discussions 27 Jan 2003, 10:57
Replies: 60
Views: 7,780
Posted By Pitchfork
well, afaik there are planets sourrounded by...

well, afaik there are planets sourrounded by asteroids. Look at these beautiful rings around Saturn e.g. imho they are asteroids. In fact I didn't hear about a planet sourrounded by thousands of...
Forum: Programming and Discussion 15 Jan 2003, 17:21
Replies: 18
Views: 3,658
Posted By Pitchfork
u can do everything with C :p I have a...

u can do everything with C :p
I have a collection of the worst code structures I found here at work and there are really horrible lines like:
...
Forum: Programming and Discussion 15 Jan 2003, 17:15
Replies: 7
Views: 4,640
Posted By Pitchfork
bool is defined via: typedef int ...

bool is defined via:
typedef int BOOL;
so at a quick look you should simply treat them as int
Forum: Alliance Discussions 14 Jan 2003, 18:10
Replies: 449
Views: 39,539
Posted By Pitchfork
Re: Re: Re: Re: Re: Re: Powerblocking in Round IX

even harder is, to be lead by you :p
Forum: Programming and Discussion 14 Jan 2003, 16:43
Replies: 7
Views: 4,640
Posted By Pitchfork
I think, u have to cast value depending on type: ...

I think, u have to cast value depending on type:

like:
if(type == "f") sprintf(newline,ln,*((double*)value));
else if(type == ...
Forum: Programming and Discussion 14 Jan 2003, 10:48
Replies: 18
Views: 3,658
Posted By Pitchfork
hint: Alt+F12 -> Definition and References, that...

hint: Alt+F12 -> Definition and References, that would have given you something like:

typedef struct tagRECT
{
LONG left;
LONG top;
LONG right;
LONG bottom;
}...
Forum: Programming and Discussion 13 Jan 2003, 13:07
Replies: 4
Views: 2,830
Posted By Pitchfork
I don't know a function for replacing a line in...

I don't know a function for replacing a line in C, what I'd do is:
- open the input file for read
- open a temporary (empty) file for write
while(!eof(inputFile)) {
- read line from input file
-...
Forum: Hardware and Tech Support 10 Jan 2003, 15:05
Replies: 18
Views: 5,590
Posted By Pitchfork
xeah, at least double :p

xeah, at least double :p
Forum: Programming and Discussion 6 Jan 2003, 11:49
Replies: 4
Views: 2,380
Posted By Pitchfork
We are using that here at work, and I have to...

We are using that here at work, and I have to say, that it's a really useful tool, especially if more than one programmer needs access to the code.
Forum: Programming and Discussion 19 Dec 2002, 15:57
Replies: 4
Views: 2,613
Posted By Pitchfork
Have a look at the call stack...

Have a look at the call stack (View->Debug-Windows->Call Stack or Alt + 7). There you can (maybe) see, which of your functions is called last and which line of it is executed while the exception...
Forum: Programming and Discussion 19 Dec 2002, 15:10
Replies: 4
Views: 2,613
Posted By Pitchfork
while in debug mode, go to the debug-menu and...

while in debug mode, go to the debug-menu and choose exceptions select all and hit always break.
Forum: Programming and Discussion 19 Dec 2002, 12:06
Replies: 11
Views: 3,452
Posted By Pitchfork
no, because: I fear you have to keep...

no, because:



I fear you have to keep track of the original array dimension and do something like:


int **MyArray; // original
int **MyCopyArray; // the copy
Forum: Alliance Discussions 16 Dec 2002, 16:26
Replies: 23
Views: 3,597
Posted By Pitchfork
I prefer the idea of mixed galaxies, let's say 12...

I prefer the idea of mixed galaxies, let's say 12 private and 12 random accounts per gal. This gives even those players a fair chance that are either not able or too lazy to get a decent galaxy....
Forum: Programming and Discussion 3 Dec 2002, 13:00
Replies: 4
Views: 3,320
Posted By Pitchfork
I assume you are using VC++? If so, have a look...

I assume you are using VC++? If so, have a look at CList resp. CArray Template classes. Really helpful for fast creation of linked lists without having to bother with memory leaks and so on ;)
Forum: Alliance Discussions 28 Nov 2002, 22:46
Replies: 34
Views: 5,003
Posted By Pitchfork
Forum: Programming and Discussion 12 Nov 2002, 20:35
Replies: 12
Views: 3,400
Posted By Pitchfork
I just want to state, that I'm very happy, that I...

I just want to state, that I'm very happy, that I passed this functional programming course at the university :D
Forum: Programming and Discussion 12 Nov 2002, 13:06
Replies: 10
Views: 2,659
Posted By Pitchfork
phpBB (http://www.phpbb.com/)

phpBB (http://www.phpbb.com/)
Forum: Alliance Discussions 7 Nov 2002, 22:46
Replies: 25
Views: 3,430
Posted By Pitchfork


Showing results 1 to 90 of 90

 
Forum Jump

All times are GMT +1. The time now is 11:11.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018