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 Professional Discussion / Hackers Tool (DBP Game)

Author
Message
madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 2nd Apr 2010 21:11
Hello, Recently got DBP as a gift. Been reading all possible books and tutorials, and finaly am getting around building my first game. I'm going to make a small short story kind of game based on a hackers interface. By that I mean "Letters in green"

I'm just here to ask for some adivce, on what things to add to the game.

I will be adding what I have soon

The Winner has arrived. It's not me it's you.
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 3rd Apr 2010 17:53
God I feel old...

Mistrel
Retired Moderator
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 4th Apr 2010 08:51
A game like this already exists. You can download the demo and examine it if you want to mine for ideas:

http://pc.ign.com/objects/664/664762.html

NightX
17
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 4th Apr 2010 11:49
There is a game called uplink, its a hacker game, very cool.

madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 4th Apr 2010 21:31
This game (Uplink) Looks very interesting and nothing like what i have...

My game is made mainly based on the print command and ink rgb (0,230,0),0

using a few string variables for login and stuff... no graphics as of yet.

problem is that i dont know how to add like a mouse click on a specific location yet. Any help would be handy...

The Winner has arrived. It's not me it's you.
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 5th Apr 2010 23:00 Edited at: 5th Apr 2010 23:01
Mouse position:

x=mousex()
y=mousey()

Mousebutton pressed

if mouseclick()
...
else
...
endif

for more details see the help file
NightX
17
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 6th Apr 2010 17:10 Edited at: 6th Apr 2010 17:12
if you dont understand anything in the code below, then just ask.

I would use a function like so -



and to see if you are pressing in the box you would do this



madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 6th Apr 2010 19:24
OK Seems to be coming along... Thx for the help with the mouse. I'm guessing that to use that with images is the same, as long as i know where they are at all times...

Probably a noob question... but how do make a user always type "******" no matter what they press... but still save what they press.. I'm now saving the string variable but i can figure out how to make them type "******"


this is what i have so far...



The Winner has arrived. It's not me it's you.
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 6th Apr 2010 23:35


I really think you ought to go through some more tutorials before trying something like this. If you aren't even able to figure out how to determine if a mouse has been clicked somewhere, you need to do some more studying with tutorials first.
NightX
17
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 7th Apr 2010 11:37 Edited at: 7th Apr 2010 12:11
yes tutorials would be useful, but just to help you, I would do something like so ->



and as im bored out of my brain, here is it added into your code.



It should of been commented well, and easy to understand

madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Apr 2010 21:04
Hmmm, entry$... Ok lets see if i'm getting the hang of this... I can use this function any time i want to use a password... right?



P.S (RUCCUS)


The Winner has arrived. It's not me it's you.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 8th Apr 2010 23:07
That code is quite dependant on your FPS, however, learning pace and computer speed aren't related :p

Rawwrr. Sig Fail.
NightX
17
Years of Service
User Offline
Joined: 3rd Apr 2009
Location: Australia, QueensLand
Posted: 9th Apr 2010 06:00 Edited at: 9th Apr 2010 09:47
Yes you can use my function freely. and it can be used password and non password.

madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 10th Apr 2010 05:54 Edited at: 10th Apr 2010 05:57
Hello... I have a small update to make to my code... NightX Thx for your function... but after a little trial and error i found another way to do it...and this way to me is easier... also uses less code... and therefor... faster.

Mad Nightmare... yes.. quite, but still i was just trying to make a point...


anyways... here is the code update and better commented...


The Winner has arrived. It's not me it's you.
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 10th Apr 2010 07:18
And the point I was trying to make is that you're going into this with very little knowledge on what you're trying to do. You dont yet understand the fundamentals, therefor anything more advanced that you try to learn is going to be confusing and will cause you to suffer down the line as you start programming with bad habbits. For example, in the response you posted to me alone, there are several mistakes and bad habits you're already making, in something as simple as that. You're relying on a game's FPS as a timer, you're storing the timer in a variable and never accessing it making it redundant, it appears you dont understand how to combine variables of different types (strings and integers in this case), etc.

Anyways, I cant stop you, just realize that although you may figure out how to accomplish some version of this game you're trying to write based on the help given in these forums, its going to be sloppy and lead you to believe you're doing things right just because it works. If you want to skip the entire process of confusing yourself in the future, stop now, go back to the basics, and try this program later on.
madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 10th Apr 2010 14:18
Hmmm... maybe, but trial and error is the best way to learn... i think... when you say basics you probably mean start in the "Hello world"... well I really don't want to re-read all the books and tutorials unless I really need...

thank you for caring... but I'm just saying that you don't know how long I have been on tutorials... I wanted to use the things I learnt in some program... to me this is the simplest program I could make since it has no 3D or 2D its mainly a text game engine... using a lot of input commands...

I'm Feeling happy that all this is coming along though... I was having a lot of trouble making the colour of text change in the mouse over... but finally got it working...

thanks Ruccus but really I will go back to tutorials if I feel the need... I keep "Beginners Guide to DBPro" handy anyway..

The Winner has arrived. It's not me it's you.
venomlad
16
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Queensland, Australia
Posted: 10th Apr 2010 15:14
i am doing to same thing RUCCUS i have seen my friend(NightX)code and thought i could just start at where he was... i was sadly mistaken although i understand how everything works it is the code i struggle with so i am going to start over and work from there.. also good luck madmaz.

venom
Alfa x
20
Years of Service
User Offline
Joined: 1st Jul 2006
Location: Colombia
Posted: 13th Apr 2010 01:56
@ madmaz: I Differ from ruccus. There are differents ways from learning one from the4 basics and one from the hard way.

There are two risks.

- if you go from basics, you could stay on basics forever.
- If you go from hard way, you could never understand a thing.

Its just a matter of preferences and skills. If you have the skills, go the hard way, you will learn fast and is no prob, if you have the determination, nothing will stop you either.


I say continue your way and learn from the hits . Thats my way too to be honest . You will DO, many mistakes, but you will too, that they should not be done. Plus, you will learn advanced techniques too.

Read the code and read the book IMO.

Login to post a reply

Server time is: 2026-07-26 14:30:49
Your offset time is: 2026-07-26 14:30:49