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 / Oh well...problems are starting to appear in my RTS... :(

Author
Message
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 31st Mar 2004 01:26
Greetings! how are you all?

Well...I'm having a little problem with unit selection handling...for example, if I have a unit, and select it and move it, it does it correctly, but if I have that unit selected and create another and try to move the unit (not the created one) then the movement is screwed up. It also happens when I have 2 units selected, let's say A & B. A and B are selected and I told them to move somewhere. While they are moving to that spot, I select B unit and tell him to move to another spot. Well, the 2 units move and no one goes neither the first or the second spot . Try it and you'll see

You don't need ANY media to test it, just copy, paste and try

I hope someone can help me


:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 31st Mar 2004 01:57
wow... nice, though on my computer the FPS drops to like 6 when doing the select multiple units thing (the FPS is generaly at 18 on my comp)

Dragael Software
Current Project: 2D RPG Editor (DragnEdit 2D)
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 31st Mar 2004 02:14
strange....you have a better PC than mine and you're having low fps . In that code I get 23 FPS and drop to 15 when I have 7-9 cubes on screen. And well...the selection & moving system is from the code of Red General... (and I'm having problems with it )

:: 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:26
First, I must say: beautiful. Whether your wrote it all yourself or copy-pasted bits and pieces from here and there it's coming together very nicely.

Unfortunately I'm not an expert on RTS logic (soon, though...soon). And, I see what you mean about the cubes going crazy when there's more than one of them. But I can say that with my Pentium Celeron 1300mhz, Geforce 2 MX 400 64mb, SoundBlaster Live! 5.1, and 256mb ram it runs at a beautiful 64 FPS, slowing down to only 41 for a brief period after selecting several units. It may not run too well on your guys' PCs, but if you can keep that efficient in the full version there are going to be a lot of happy gamers.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Mar 2004 12:46
That is weird. There's obviously a bug with how you assign target coordinates. I'll take a look, but it'll have to wait until tomorrow, as its 4:30am and i need sleep. My fps seemed fairly high, dont remember what they were though.
PC specs:
athlon 1600 and 2600 (dual board)
1.5gb ram
gf3 ti (9800 pro real soon, if that blasted truck ever comes)

"eureka" - Archimedes
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 31st Mar 2004 17:00 Edited at: 31st Mar 2004 17:01
@Bear Crazy Donut Productions: hehe thanks!! truly the code is something like a mix of Red General, Van-B and Phaelax codes, and some code of me of course. Well....personally I try to split the loop in a lot of labels, so I have my code ordered .

Quote: "But I can say that with my Pentium Celeron 1300mhz, Geforce 2 MX 400 64mb, SoundBlaster Live! 5.1, and 256mb ram it runs at a beautiful 64 FPS, slowing down to only 41 for a brief period after selecting several units."


hmmmm that could be the selection routine....I'll try to speed it up when at least these units move well .

@Phaelax:
Quote: "That is weird. There's obviously a bug with how you assign target coordinates. I'll take a look, but it'll have to wait until tomorrow, as its 4:30am and i need sleep. My fps seemed fairly high, dont remember what they were though. "


Alright! it's no problem, I can wait I really appreciate it thanks

@Both of you: You both have a GREAT pc!!

Edit: corrected some ortographical errors

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 31st Mar 2004 17:11
I must say I'm impressed! With my computer, Athlon xp 2000+, 768 mb ram, Nvidia tnt2 pro, 80gb and 20 gb hard-drives, it started out with 90 FPS, and slowed down to about 85 when I added a second unit. After adding about 20 units the speed got down to about 45 FPS, but it never went below that.

By today's standards my video card is getting out of date (made in 1999) so I think your game will do great for most people.
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 31st Mar 2004 19:11
i got this error (with DBPro)...
"user function 'OIS' must return a value if used in an expression at line 368"


"Your wife is death. How? NO idea. But it is murder. REVENGE!!!!!!!!!"
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 1st Apr 2004 00:18
Quote: "video card... (made in 1999)"
thats young compaired to mine (no idea when it was made but i know its older than that)

Dragael Software
Current Project: 2D RPG Editor (DragnEdit 2D)
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Apr 2004 00:38
Quote: "Quote: "video card... (made in 1999)"
thats young compaired to mine (no idea when it was made but i know its older than that)"


*lol* mine is more older than yours! it's a SiS 8 Mb of the first 3D cards in that time (I think 1998...)

@DarkWing Duck: ?¿?¿ oh, I only have a demo of DBPro, I'll try to test if there to see if it gives me the same error. If I correct it, I'll post the code here, but I advice that the RTS will be finished in DBC.

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Apr 2004 01:31
Alright, here's the DBPro code. I've made some changes to it (mainly putting a 0 (zero) in the endfunction instruction of the OIS function and changing the moving system, now you'll have to move the units with the right button, as oppossed in the DBC code).

The code is functional now. I hope it works. Also, the FPS lowers only happen in DBPro, because in DBC I always have the same FPS when I drag the selection box ...well, gotta write my own function then...

CODE (DBPRO ONLY)


:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Apr 2004 16:57
:bump: anyone here??

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 1st Apr 2004 17:09
ok i tested the DBPro code and they only do a wierd jiggy dance

"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: 1st Apr 2004 17:16 Edited at: 1st Apr 2004 17:17
lol! hmmm well.....you can try the DBC code with a DBC demo...anyway if you selected the two units and moved them and then selected one of them and move it to another spot.....that's what they do

Edit: what do you mean by "jiggly dance"?

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 1st Apr 2004 19:32 Edited at: 1st Apr 2004 19:32
Quote: "Edit: what do you mean by "jiggly dance"?"

well... they point the right direction but it's like they're stuck on something and they just kinda... "wiggle" (you would have to see it to understnd it )

i tried telling them both to go to one spot then selecting just one of them and telling him to go somewhere else and they both "pointed" at the second spot (and of course wiggled )

"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: 1st Apr 2004 22:10
ohhhhh I understand now, *lol*.

Quote: "i tried telling them both to go to one spot then selecting just one of them and telling him to go somewhere else and they both "pointed" at the second spot (and of course wiggled )"


yeah....that's the real problem

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Apr 2004 01:02
:bump: oh well....bumping again.....anyone here?

:: 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: 2nd Apr 2004 03:48
Do you know if Dark Konflict comes with source? That game had the mouse input down pat.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Apr 2004 16:55
nope...all the game was already compiled

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 3rd Apr 2004 19:26
my DB says it doesnt recognise Utype amoung other things in that code. have i got the wrong version?

Monty
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 4th Apr 2004 04:41
if you're testing the DBPro code in DBC then use the first code I put in my first post here, the DBPro code is the same just modified to work in DBPro. I'm working with DarkBASIC Enhanced v1.13 with the spanish help patch, so I'm sure the DBPro code will don't work on DBC. Try the code in my first post here .

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 4th Apr 2004 17:44
am i being shortsighted (or maybe, in the words of DARKWOLF, stupied). i can only see one code snippet, and it aint'n working.

Monty
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 4th Apr 2004 17:47
no, sorry, i see it now. i was being shortsighted (and stupied), but still neither of them work. bit-of-a-bugger realy.

Monty
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 4th Apr 2004 23:34
Strange, that's the same code I'm using...I'll give it a test by copying & pasting, because sometimes that code snippet thing cuts some code parts...I'll give it a test now...

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 5th Apr 2004 01:32
In my DB it worked perfectly. I copied & pasted and executed it and it compiled without any errors...It can be your IDE....don't know...I'm using DarkEDIT and I haven't got any errors...make sure your DB is the Enhanced v1.13 version.

:: 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: 6th Apr 2004 09:53
Just a thought, try putting it in the SOURCE box.....as long as you don't actually copy the TGC and Apollo logo it works quite efficiently.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 7th Apr 2004 04:49 Edited at: 7th Apr 2004 04:51
uhh....I pasted the code in the "Code:" textbox here and pressed "Post Message"...

Edit:
Quote: "as long as you don't actually copy the TGC and Apollo logo it works quite efficiently."

LoL!!

it worked! well....in the "source" button is the DBC code...

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 8th Apr 2004 04:16
Alright.....today's 7 Apr 2004 and yet no one has answered even a solution or even a suggestion........I've solved your problems about running the code and I even translated it to DBP....but...no one has tried to help.......no offense....Phaelax told me that he will help me but no answer.......¿¿what's happening??. Same happened with some posts of mine when I was making my flight sim....only Jess tried to help, at least he tried!...

Oh well....

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::

Login to post a reply

Server time is: 2025-05-30 15:05:26
Your offset time is: 2025-05-30 15:05:26