Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / I'm making a RTS......from where I start?

Author
Message
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 20th Mar 2004 05:08
Greetings!

You'll sure be wondering what happened to my flight sim...well, I've been blocked with that problem since my last post (the post with the explanation images) that I've decided to leave it until I find a way (sometimes when you forgot the problem you find the solution ). So, for advancing in DBC programming I'm trying to make an RTS.

I know that Bolt is making an RTS and another who I can't remember his name now, so I'm looking some advice.

I want to know from where do I start to make an RTS, how I do to control the units, selection boxes, a "mouse-to-matrix" function, you know, for converting the mouse position to a matrix x & z position, how to create & eliminate units and how to select single & multiple units and to move them. I know, I'm asking too much, but I'm one of those who can't live without programming anything...

So, please can someone who's making an RTS help me?

Thanks in advance

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
koshi
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Cyberspace
Posted: 21st Mar 2004 07:23
you should learn the pick screen commands, in the help files.
Commands>Basic3D Commands

this allows you to pick points in 3D space using your mouse.

Does the noise in my head bother you?
http://www.rovokaa.tk/
Mason
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 21st Mar 2004 07:26
I can't help you too much on the programming itself, but i could possibly give u some inspiration and ideas from someone's piece of work.

http://darkbasic.thegamecreators.com/?m=showcase_view&i=104

take that link to one of the showcase games called dark Konflict. It was the first rts made for dbc. Possibly the only one. You could maybe get some ideas or sumthin outa it. Hope i helped
cheers,
xXMasonXx
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Mar 2004 08:10
Hmmm, there was someone who was making a cool looking rts game awhile back. He did have source code posted in the code-snippets. I suppose I could search for it and see if I can find it.
Or I can just tell you that it was me.

"eureka" - Archimedes
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 23rd Mar 2004 03:00
Phaelax!!! you were doing an rts?!?! hey cool!! I've searched for it on the code snippets forum but I can't download it Angelfire always says that the page cannot be found anyway I hope you can help me (I'm using DBC)

JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 23rd Mar 2004 06:15
Quote: "and another who I can't remember his name now"

is that me? i feel so important. but im not making a RTS ne more
from they great words of Jerico2day -> "read a QBasic RPG tutuorial, it's easy to apply to DB and it will teach you loads about updating and using multiple objects." actually thats not a direct quote, but its basically what he said :p

The second smartest person in the world, as of TODAY!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Mar 2004 10:17
I posted some code in code snippets, and a special DBC version over at LLRGT that gives a decent mouse interface (click on matrice, zoom in/out, rotate view, and push scrolling).

Go grab it, it's a great place to start - just as long as you like the camera view in OIE.

Van-B


The nature of Monkey was irrepressible!.
DWR
21
Years of Service
User Offline
Joined: 2nd Dec 2003
Location: No-where to be seen
Posted: 23rd Mar 2004 15:36
Remember: Plan everything - every detail, every problem. Play the game out in your head. What will the payer do? Why? What will happen afterwards? Remember, not too much realism - otherwise theres no point booting up the PC - and remeber, theres a fine point between realism, and fun - keep the balance, and your on the way to a great game.

Good luck, I really look forward to seing it.

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 23rd Mar 2004 16:25
Quote: "I posted some code in code snippets, and a special DBC version over at LLRGT that gives a decent mouse interface (click on matrice, zoom in/out, rotate view, and push scrolling).
Go grab it, it's a great place to start - just as long as you like the camera view in OIE."


MAN!!!!!! THIS IS AWESOME!!! It's just the camera view and the precission I was seeking!!! (The camera is like Warcraft 3 so I liked it , though I haven't seen OIE) I tested it a bit fast (10-20 sec.) but it does what I need....now I'll have to adapt it to my game and study how did you managed to convert the mouse 2D coords to 3D coords...very COOL

Quote: "Remember: Plan everything - every detail, every problem. Play the game out in your head. What will the player do? Why? What will happen afterwards? Remember, not too much realism - otherwise theres no point booting up the PC - and remeber, theres a fine point between realism, and fun - keep the balance, and your on the way to a great game.
Good luck, I really look forward to seing it."


hehe thanks DWR. By the way thanks for the advice, I'm gonna keep that in mind....Also I'll try to don't repeat what some games did (there was a M****soft game that was too realistic and I didn't liked it)...hmm gotta keep that in mind...

Anyway I have the idea for the game now....I'm not gonna say it here but when I send a screenshot you'll surely know of what's related the game story

Thanks everyone!! Now gotta find a way to select units and selection boxes....I don't know why but I'm thinking about SCREEN POSITION X() and SCREEN POSITION Y()...

Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 23rd Mar 2004 23:42
Quote: "(there was a M****soft game that was too realistic and I didn't liked it)..."
don't tell me yer talking bout AoE and did you purposly blot out Microsoft or do the mods on this forum not like Microsoft?

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, Windows XP, Direct X 9, half-dead CD burner, crappy moniter (15inch), DBC 1.13
~Dragael Software
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 23rd Mar 2004 23:55
nah I was talking about close combat..... :S too realistic for me......hey I didn't wanted to start a flame war!

Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 24th Mar 2004 00:02 Edited at: 24th Mar 2004 00:04
ah i c... srry bout that... and good, good. AoE is theeeee best (even the original). do pplz on this forum not like MS or somethin'? (just outa curiosity)

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, Windows XP, Direct X 9, half-dead CD burner, crappy moniter (15inch), DBC 1.13
~Dragael Software
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 24th Mar 2004 01:01
well.....for now I'm trying to do a view like AoE but with 3D....sorta like a Warcraft 3 with isometric view.....thanks to the awesome code of Van-B

BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Mar 2004 03:32
Microsoft !!!

I guess they're kind of just a big joke since those allegations of breaking the antitrust act. They even made a movie called Antitrust that was totally a Microsoft story except with conspiracy and murder.

Crazy Donut Productions
Current Project: KillZone
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 24th Mar 2004 16:12
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Mar 2004 17:16
AoE2 is my all time favorite rts, with the original red alert second.
I don't think my angelfire site is around anymore, I moved to a new server. Try this. Not sure exactly what version it is.

http://www.dbspot.com/krytek/downloads/rts_aliens.zip

"eureka" - Archimedes
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 25th Mar 2004 00:10
Quote: "Microsoft !!!

I guess they're kind of just a big joke since those allegations of breaking the antitrust act. They even made a movie called Antitrust that was totally a Microsoft story except with conspiracy and murder.
"

hey if it wrnt for MS, there never woulda been BASIC let alone the modern opperating system of Windows XP. I mean what would you go with? Mac OS? OS/2? Compaq's old OS (sold to MS to make DOS)?

okay, yeah, im over exagerating but Windows is the only OS that i trust.

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, Windows XP, Direct X 9, half-dead CD burner, crappy moniter (15inch), DBC 1.13
~Dragael Software
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Mar 2004 01:16
until you can install yourself linux...

anyway we're off the topic...hey Phaelax...your code is DBP I can't test it

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Mar 2004 16:22
Hey Van-B can u help me here please?

You know...I'm using your OIE mouse-to-matrix code. It's marvellous except for one thing: when the mouse is to high (coords 0,0), the example pointer cannot be seen (I've tried with a sprite in my own code and it doesn't work, the sprite just goes off the screen). When the mouse is in the middle, the pointer is complete but a bit off the edge, and when the mouse is low (coords 0,screen height() ) then the pointer is more to the left than in the middle, so for say it simple: the mouse moves left when the mouse moves down, like if they were linked...is there any way to correct that?

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Mar 2004 00:20
:bump: or at least someone that have used his code...?

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Mar 2004 09:16 Edited at: 26th Mar 2004 09:16
Oh crap, this is dbc board isn't it. My early version were for classic, I'll look it up for you.


Quote: "hey if it wrnt for MS, there never woulda been BASIC let alone the modern opperating system of Windows XP. I mean what would you go with? "


Maybe processor companies would have advanced farther to keep up with the other available OS's like BeOS. Who knows, maybe we could have had 64-bit systems years ago. Or even better, AMIGA!

"eureka" - Archimedes
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Mar 2004 16:13
Thanks Phaelax, I really appreciate it I hope you find it

Also I've downloaded and played Dark Konflict....what a game!!!! too bad it's a bit slow in my pc (the soldiers walk instead of running) but for be made in DB...very cool

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 27th Mar 2004 02:27
:bump:
Quote: "
Hey Van-B can u help me here please?
You know...I'm using your OIE mouse-to-matrix code. It's marvellous except for one thing: when the mouse is to high (coords 0,0), the example pointer cannot be seen (I've tried with a sprite in my own code and it doesn't work, the sprite just goes off the screen). When the mouse is in the middle, the pointer is complete but a bit off the edge, and when the mouse is low (coords 0,screen height() ) then the pointer is more to the left than in the middle, so for say it simple: the mouse moves left when the mouse moves down, like if they were linked...is there any way to correct that?"


anyone here???

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Mar 2004 11:18
Ok, here you go. I even included source for the map editor, which was never fully implemented into the engine yet. Press "H" for help in the editor. Also, in the editor's folder, you'll see several blank text documents. Do not delete those, or the load function in the program will fail. Why? I have no friggin idea why. For some reason, the folder needs to have a certain number of files in it. Very odd.

Editor - 1.5mb
http://www.dbspot.com/krytek/downloads/dbc_rts_map_editor.zip

Engine - 1.2mb
http://www.dbspot.com/krytek/downloads/dbc_rts_engine.zip

"eureka" - Archimedes
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 27th Mar 2004 22:48
Man you're awesome! I'll see what I can learn from it , it looks USEFUL. Thanks man I'm sure this will help me in the making of my RTS game. Thanks Whenever I use something from it, I'll put the proper credits. I'm in a "LAN house" right now (well....those places where you pay for using a PC for some time) so I can't test it now but when I'm home I'll surely see how it works.

Thanks

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 29th Mar 2004 00:57
Hi Phaelax!!

Whoa, your code looks awesome! I've been analyzing it and I found a line that does say:

print "Poly count: ",statistic(1)

I haven't found the "statistic" array in the code, so, curious, I put the same line on my rts and it worked! so I think that's a sort of "hidden & useful arrays". I tried using statistic(0) (or 2, not sure) and I got an 1. Does that mean anything? If you know what that array mean, can you explain it to me?

Thanks

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Mar 2004 00:10
statistic(1) is an undocumented command. Not sure what other numbers would return, but 1 returns visible poly count. Not sure what it does if you have multiple cameras in dbp.

"eureka" - Archimedes
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 30th Mar 2004 04:58
oh.....ok.......but then from where did you learnt that statistic(1)?

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DWR
21
Years of Service
User Offline
Joined: 2nd Dec 2003
Location: No-where to be seen
Posted: 30th Mar 2004 15:31
Hey, I have a another Question (Related to RTS stuff) Can you make a function loop without making a do loop thing (and without redfining it in the main loop)

For instance:

function Bad_example(Name$)
start1:
if name$="Bad"
print "Hey!!"
endif
goto start1
endfunction

Would this work???

IMAGE HAS DISAPPEARED
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 30th Mar 2004 18:49
DWR- i think that would work but why do you want a loop in a function? why not just call it from the main loop?

ooh ooh i got this great idea master yoda we could make a game! and the game's story line would be...
"Your wife is death. How? NO idea. But it is murder. REVENGE!!!!!!!!!"
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 31st Mar 2004 01:15
Of course DWR! I tried this in DB Enhanced 1.13 and it worked! (just copy & paste in db...)


:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 31st Mar 2004 07:28
If you wanted to loop inside a function you could just use normal looping commands, it works fine. In fact, on an old version of our level editor 40% of the loops were inside functions.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html

Login to post a reply

Server time is: 2025-05-23 03:06:23
Your offset time is: 2025-05-23 03:06:23