Spider Mastermind
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom to Delphi Total Conversion
 
Author
All times are GMT. The time now is 03:02. Post New Thread    Post A Reply
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04


When I've first played DooM, about 12 years ago, I always wanted to look, study and understand it's source code.
Well, since the original release of DooM source code by idsoftware there are a lot of source ports. Now I've made another one. It's a very early version of this project, many features are not implement. The difference in my source port is that it's written in Delphi, not in C. You can find both executable and source code here:
http://www.geocities.com/jimmyvalav...delphidoom.html

NOTE:
It 's a very early version of the project, cheating, music and networking not implement yet, there are some bugs, but the source code compiles and runs!!

EDIT: Music and cheating now works...

Last edited by Jimmy Valavanis on 03-21-05 at 20:57

Old Post 02-09-05 18:51 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Planky
Senior Member


Posts: 1128
Registered: 12-02


I have contemplated converting the source to delphi myself, but I understand little of game coding, let alone C...

The thing I like about delphi is the fast compiling, the relative simpleness of the language itself.

Last edited by Planky on 02-12-05 at 08:17

Old Post 02-12-05 08:07 #
Planky is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04



Planky said:
I have contemplated converting the source to delphi myself, but I understand little of game coding, let alone C...

The thing I like about delphi is the fast compiling, the relative simpleness of the language itself.



Now you don't have to make the conversion!!
The source code is over there!
I recoment to peek the new uploaded version that has a lot of
bug fixes and music support!

Last edited by Jimmy Valavanis on 02-14-05 at 12:59

Old Post 02-13-05 16:04 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Planky
Senior Member


Posts: 1128
Registered: 12-02


I was having a look at the code the other day... very nice indeed. I did have to comment out a few lines of code to get it compile (s_sfx stuff, it's trying to assign a value to a constant?).

I've started to experiment around with it, to see if I can get higher resolutions, and possibly a key mapping menu.

Good work!

Old Post 02-14-05 20:46 #
Planky is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Bastet Furry
THE WERELION


Posts: 896
Registered: 09-02


Now someone makes a port to Visual Basic and to python :P

Old Post 02-15-05 09:58 #
Bastet Furry is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04



Planky said:
I was having a look at the code the other day... very nice indeed. I did have to comment out a few lines of code to get it compile (s_sfx stuff, it's trying to assign a value to a constant?).

I've started to experiment around with it, to see if I can get higher resolutions, and possibly a key mapping menu.

Good work!



To compile this correct try:

Select from menu "Project" then "Options" and then the "Compiler" tab
and then make sure that
"Assignable typed constants" is checked!

What version of Delphi do you have?

Delphi 6 personal was provided free of charge from Borland.

Old Post 02-15-05 15:46 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Planky
Senior Member


Posts: 1128
Registered: 12-02


I have Delphi 6 too. I wasn't aware you could get it for free...

I had forgotten about that compiler option *smacks head*

Old Post 02-15-05 20:52 #
Planky is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04



Planky said:
I have Delphi 6 too. I wasn't aware you could get it for free...

I had forgotten about that compiler option *smacks head*



I should make an *.inc file with the compiler options...

Old Post 02-20-05 10:58 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Planky
Senior Member


Posts: 1128
Registered: 12-02


What code effects the monster infighting?

Old Post 02-28-05 05:18 #
Planky is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04



Planky said:
What code effects the monster infighting?


Saying infighting do you mean close attack?
In file p_enemy.pas locate the procedure A_TroopAttack(). (AI function that handles Imp attack}

if P_CheckMeleeRange(actor) then // <- If the target is close
begin
S_StartSound(actor, Ord(sfx_claw));
damage := (P_Random mod 8 + 1) * 3;
P_DamageMobj(actor.target, actor, actor, damage);
exit;
end;


------------
CheckMeleeRange -> Check if the target of actor is close enough.
If true then damage the player from close attack
else
// launch a missile
P_SpawnMissile(actor, actor.target, MT_TROOPSHOT);

Old Post 02-28-05 13:18 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Snarboo
Forum Staple


Posts: 2073
Registered: 09-04


I think what Planky meant by monster infighting is where two monsters start attacking each other, usually because they get hit by another monster's attack.

Old Post 02-28-05 22:58 #
Snarboo is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
DooMAD
Doom IS a religion.


Posts: 1167
Registered: 07-02


Yes, the targetting code rather than the actual attack.

Old Post 03-01-05 00:11 #
DooMAD is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Darkhaven
Banned


Posts: 1127
Registered: 07-04



Bastet Furry said:
port to Visual Basic


Hmm...

Old Post 03-07-05 23:21 #
Darkhaven is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Bastet Furry
THE WERELION


Posts: 896
Registered: 09-02



Darkhaven said:
Hmm...


Oh no, i have planted dumb ideas @.@

BTW: How far is the doom engine rewrite in delphi(pascal)?

Old Post 03-08-05 08:28 #
Bastet Furry is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04



DooMAD said:
Yes, the targetting code rather than the actual attack.


Every mobj (Mmonster OBJect) has a target, or when it has not then
it search for a target. The target to be found can be a player or
another monster. This is the way the DOOM engine search for an enemy.
When a monster attacks another monster, then the second's monster
target will became the first monster, elegant indeed!!

Last edited by Jimmy Valavanis on 03-21-05 at 21:01

Old Post 03-21-05 20:55 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Infinite Ammunition
Member


Posts: 658
Registered: 10-03


behold the spectacle of awesomeness that i behold when running it with -nofullscreen:

http://img.photobucket.com/albums/v...y/weirdness.png

Old Post 03-22-05 07:02 #
Infinite Ammunition is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Jimmy Valavanis
Warming Up


Posts: 15
Registered: 06-04


Currently windowed mode works correctly only if you 've set your desktop to 32bit color depth. That's why this ... wierd effect...

Old Post 03-22-05 15:47 #
Jimmy Valavanis is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Infinite Ammunition
Member


Posts: 658
Registered: 10-03


is that fixable?

Old Post 03-22-05 19:29 #
Infinite Ammunition is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
nightice
Mini-Member


Posts: 70
Registered: 01-04



Bastet Furry said:
Now someone makes a port to Visual Basic

I've always wanted to do that, thankfully there's no ASM, can't be excruciatingly difficult...just somewhat difficult. :P

Old Post 03-23-05 23:04 #
nightice is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 03:02. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom to Delphi Total Conversion

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory