EvilZone

Programming and Scripting => Projects and Discussion => : Avlas May 24, 2015, 10:25:18 PM

: Hacking Game
: Avlas May 24, 2015, 10:25:18 PM
Hello,


I'm currently working on a game set in 1980s where you are a member of a hacker community.
The game's aim is to complete several missions given by the community like hacking servers, stealing files stuff like that. To do this, you will need to buy programmes and hardware, and be careful not to be discovered!
It will be command-line style.


I'd like to know what's your opinion about this game.

: Re: Hacking Game
: Kulverstukas May 24, 2015, 10:32:37 PM
A hacking MUD game? I can't imagine how that could be played, but you could try and amaze me :P I suppose it could be set around a virtual BBS instead of a dungeon?
Idea sounds great, I'd like to see such a game.
: Re: Hacking Game
: Avlas May 24, 2015, 10:43:56 PM
I have already written a bit of code, if you want to have a look I can send you the code and you can compile it. It is written in C++, well I'm a noob so it probably is C+-  :P
: Re: Hacking Game
: x0nic May 24, 2015, 10:59:35 PM
Your description kinda reminds me of that mini-game with CLI optic in Enter the matrix where the player "hacked" some databases in order to unlock special game contents or cheats. If you don't know what I mean, try searching on YT for old cheat tutorials or Let's Plays on this game, otherwise justvisit some generic cheating com that's old enough to have EtM in their archives.... Maybe you'll get some inspiration.
However, the concept of that thingy wasn't that bad at all but imho EtM's realization sucked a little; anyway there might be potencial.

On which dev stage is your project atm? Did you already code some of the most basic stuff? Or primarily doing brainstorming right now?

EDIT: Yeah, go for it and post what you have already, I'd really like to take a look  ;) and haha @ "C+-"
: Re: Hacking Game
: Kulverstukas May 24, 2015, 11:17:00 PM
I have already written a bit of code, if you want to have a look I can send you the code and you can compile it. It is written in C++, well I'm a noob so it probably is C+-  :P
I have a better idea - set up a github repo.
: Re: Hacking Game
: x0nic May 24, 2015, 11:21:11 PM
I have a better idea - set up a github repo.
Depends on what he wrote so far. Like, a new repo for ~50 lines that maybe won't even compile? Meh.
He said "a bit of code". Who knows what that means ^^'
: Re: Hacking Game
: Avlas May 24, 2015, 11:22:39 PM
Yes, I played Enter The Matrix and I remember that minigame.
However, I have already coded the basics to give a shape to the game and let me to understand better how to manage it.
It is already playable but it is still veeery rough. I wrote arround 3000 lines.
I heard of GitHub but I don't know very well how it works, I'll check.
Thanks for your replies.
: Re: Hacking Game
: x0nic May 25, 2015, 12:01:34 AM
if you managed to write 3000 reasonable lines of code, using github won't be a challenge
i'll stay tuned
: Re: Hacking Game
: TitanFury May 25, 2015, 03:01:03 AM
Man I really hope this turns into something, even if the graphics are shitty, I've always wanted to implement a kind of basic "These are your simple attacks, go execute them" game, sort of like HTS or SO, but in a game setting with prizes.

Kind of a Solo-CTF I guess.
: Re: Hacking Game
: khofo May 25, 2015, 07:18:40 AM
I am also looking forward to this game, once it's on GitHub make sure to share it. It looks promising though, the polishing may come later let's say it's still an Alpha
: Re: Hacking Game
: Avlas May 25, 2015, 04:45:55 PM
Thanks to all of you for your replies :D
I've created a repo in GitHub where you can find the whole code and give it a look.
Unfortunatly, comments and variable names aren't in english, so it will be difficult to read.
However, you can copy the code, compile it, and play.
It should work on Windows, but if it doesen't delete line 3033.
: Re: Hacking Game
: khofo May 25, 2015, 04:49:32 PM
A link?  :3 and thank you, can it be added to Evilzone releases?  Ofc with your approvals and the admins/moderators
: Re: Hacking Game
: chris May 25, 2015, 04:52:29 PM
Thanks to all of you for your replies :D
I've created a repo in GitHub where you can find the whole code and give it a look.
Unfortunatly, comments and variable names aren't in english, so it will be difficult to read.
However, you can copy the code, compile it, and play.
It should work on Windows, but if it doesen't delete line 3033.

Yes a link would be awesome lol
: Re: Hacking Game
: Avlas May 25, 2015, 05:12:23 PM
This is the link: https://github.com/Avlas99/Rebirth-HackingGame

Actually, it still very rough and there are more bugs than lines of code, so I think it's too early to put it into the releases
: Re: Hacking Game
: khofo May 25, 2015, 05:33:56 PM
This is the link: https://github.com/Avlas99/Rebirth-HackingGame

Actually, it still very rough and there are more bugs than lines of code, so I think it's too early to put it into the releases

I took a quick look on the code, and read the a bit the storyline seems, fun will compile and play once I have some spare time :)
: Re: Hacking Game
: Avlas May 25, 2015, 05:59:31 PM
Thank you for your time.
: Re: Hacking Game
: Kulverstukas May 25, 2015, 06:17:47 PM
This is the link: https://github.com/Avlas99/Rebirth-HackingGame

Actually, it still very rough and there are more bugs than lines of code, so I think it's too early to put it into the releases
I take it you just began programming, because 3k lines in a single file? my brain cannot comprehend this!
You really need to split it into classes and structs, it's C++ for Christ's sake.

However, good start so far, I'll keep and eye on this.
: Re: Hacking Game
: Avlas May 25, 2015, 06:38:09 PM
Yes, I know, but when I started I didn't thought it would become so big, so I programmed everything in one file.
And now, change the structure and make other files is difficult.


The programme is shaped this way:
There's a void function for each site you can visit, and other void functions for each programme you can run.
These functions are obviously called when you connect to a site or when you run a programme
If possible, I'll try to put sites functions in one file, programmes functions in another, and main in another else.
If you have any advice on how to organize the programme, share it!
: Re: Hacking Game
: Kulverstukas May 25, 2015, 06:44:18 PM
You need to revise and split your code now, otherwise if you keep building it as it is, you will introduce new bugs to the code and debugging will be hard as a motherfucker. Take some time to fix it up, it'll be 100x better for everyone. Also no sane person would thoroughly read your code if it's like 10k lines in a single file.
: Re: Hacking Game
: Avlas May 25, 2015, 06:46:39 PM
Thank you, I'll get to work
: Re: Hacking Game
: x0nic May 26, 2015, 10:30:25 PM
This is the link: https://github.com/Avlas99/Rebirth-HackingGame

Actually, it still very rough and there are more bugs than lines of code, so I think it's too early to put it into the releases
"stringhe", "porte", "programmi", rofl
ye but looks promising, I'll test it out tomorrow ;)
: Re: Hacking Game
: Avlas May 29, 2015, 07:20:08 PM
If someone have tested it, I'd like you to share your opinion. Report bugs (Oh, you will have to write A LOT) and, more important: share your tips to make a better game! :D
: Re: Hacking Game
: khofo May 30, 2015, 01:13:44 AM
If someone have tested it, I'd like you to share your opinion. Report bugs (Oh, you will have to write A LOT) and, more important: share your tips to make a better game! :D


You can't imagine how much I want to try it, but on data, (DSL quota atomized), and thus I can't download a compiler
: Re: Hacking Game
: Avlas May 30, 2015, 09:33:13 AM
I can provide you the .exe file if you want.
: Re: Hacking Game
: Kulverstukas May 30, 2015, 05:38:21 PM
Another thing why you should split this in files, is the collaboration - if it's on github, people will probably want to contribute to your project by providing patches or pull requests or blocks of code. If the project is only 1 single files - you'll have a lot of conflicts, basically for each edit someone else made. While a file structure would not interfere that much if a bug is in some other block of code in another file...
: Re: Hacking Game
: 0x456 June 10, 2015, 04:17:37 PM
This is the link: https://github.com/Avlas99/Rebirth-HackingGame (https://github.com/Avlas99/Rebirth-HackingGame)

Actually, it still very rough and there are more bugs than lines of code, so I think it's too early to put it into the releases

I can help you to make a better code when i have some times. I develop (school) in C/C++ since 2013 and I see that you can improve this code a lot.

You must learn about pointer function then STL after that you can see some idea about Templates because this will save you a lot of time.