Author Topic: Hacking Game  (Read 2154 times)

0 Members and 1 Guest are viewing this topic.

Offline Avlas

  • /dev/null
  • *
  • Posts: 10
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #15 on: May 25, 2015, 05:59:31 pm »
Thank you for your time.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Hacking Game
« Reply #16 on: 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.

Offline Avlas

  • /dev/null
  • *
  • Posts: 10
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #17 on: 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!

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Hacking Game
« Reply #18 on: 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.

Offline Avlas

  • /dev/null
  • *
  • Posts: 10
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #19 on: May 25, 2015, 06:46:39 pm »
Thank you, I'll get to work

Offline x0nic

  • Peasant
  • *
  • Posts: 51
  • Cookies: 5
    • View Profile
Re: Hacking Game
« Reply #20 on: 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 ;)

Offline Avlas

  • /dev/null
  • *
  • Posts: 10
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #21 on: 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

Offline khofo

  • EZ's Swashbuckler
  • Knight
  • **
  • Posts: 350
  • Cookies: 25
  • My humor is so black, it could go cotton picking.
    • View Profile
Re: Hacking Game
« Reply #22 on: 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
Quote from: #Evilzone
<Spacecow18> priests are bad ppl
<Insanity> Holy crap
Of course God isnt dead. He's out there partying with the Easter Bunny, Santa Clause, Tooth Fairy, and the Man on the moon...
Some of my work: Introduction to Physical Security

Offline Avlas

  • /dev/null
  • *
  • Posts: 10
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #23 on: May 30, 2015, 09:33:13 am »
I can provide you the .exe file if you want.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Hacking Game
« Reply #24 on: 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...

Offline 0x456

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Re: Hacking Game
« Reply #25 on: June 10, 2015, 04:17:37 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 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.
« Last Edit: June 10, 2015, 04:18:31 pm by 0x456 »