Author Topic: Battlefield  (Read 15628 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Battlefield
« Reply #15 on: November 07, 2010, 06:04:36 pm »
Looks sweet :) Do we get some of those sweet cheat codes? ;)

Also, is it not just possible to use a couple line or space commands to clear those boxes? Or is it just more space efficient to clear the screen and rerun the Cheat Menu code?

 You'll have to crack the algorithm to figure out the cheats. I'd be happy to reveal it, but it's self modifying.

As for the screen, the way the menu is located in the code means that you'd only be able to clear the menu once. After that you'd end up with a memory error.

What algorithm? O.o I'm curious now :P

Hmm, I'm not entirely sure what you mean but ok.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Battlefield
« Reply #16 on: November 07, 2010, 06:20:47 pm »
When you enter a code, it takes that code and performs a hash on the string*. The output of that is compared to a set of known values that correspond to certain input sequences. If it matches one of them, then it changes a few variables in the code that exploit holes in the game engine to give you superpowers or give you more weapons.

The algorithm is very simple:
1) get character from input string
2) find character in array
3) locate value corresponding to character
4) mix up input string
5) swap values in array
6) compute current iterated value
7) goto step 1 five times
8 ) check for equivalence
9) if the values match, do some action. Else, output(x,y,"Bad Code. Stop Cheating.

I have a cryptographic hash that I want to try out, but it'll take up too much space and it's too slow.

*There are a few differences, such as the output length. "Cipher" might be a better description.
« Last Edit: November 07, 2010, 06:22:27 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Battlefield
« Reply #17 on: November 07, 2010, 07:20:04 pm »
Hmm, ok.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55940
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Battlefield
« Reply #18 on: November 07, 2010, 09:07:39 pm »
Wow I never managed to implement a cheat code system before, even less a save system based on codes. I remember some NES and SNES games were like that, especially the ones by Capcom. Usually, you couldn't guess passwords to get at a different point in the game, but in some rare occasions, you could manage to guess one. There were also some easter eggs.
Dream of Omnimaga

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Battlefield
« Reply #19 on: November 07, 2010, 09:25:20 pm »
The save system will be slightly different and actually record your progress. The cheat codes just allow you to cheat.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55940
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Battlefield
« Reply #20 on: November 07, 2010, 10:56:03 pm »
Yeah I know, I was just giving an example of code system usage in games
Dream of Omnimaga

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Battlefield
« Reply #21 on: November 07, 2010, 11:01:16 pm »
Sorry, didn't get that.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Battlefield
« Reply #22 on: November 08, 2010, 09:50:59 pm »
The only important remaining tasks are to finish the game engine and make more maps! Battlefield is well on its way to completion.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Battlefield
« Reply #23 on: November 08, 2010, 10:30:45 pm »
I ditched the menus for selecting units today for the 5 buttons on the top.  So now you send the battalion to attack the enemy base. ;)

EDIT:  wait, why was this post rated down?  was this insulting to anyone, if so, how?
EDIT2: fixed.
« Last Edit: November 09, 2010, 11:27:42 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55940
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Battlefield
« Reply #24 on: November 08, 2010, 11:25:36 pm »
Nice to hear it's close to finished. When was the contest ending, btw?
Dream of Omnimaga

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Battlefield
« Reply #25 on: November 09, 2010, 01:27:32 am »
I think it ends on Thursday.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55940
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Battlefield
« Reply #26 on: November 09, 2010, 02:45:26 am »
Ah, right. Can't wait to try the entries. ;D
Dream of Omnimaga

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Battlefield
« Reply #27 on: November 09, 2010, 05:24:45 pm »
at what time should the entry be submitted?  or just anytime on thursday?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Battlefield
« Reply #28 on: November 09, 2010, 05:26:26 pm »
I ditched the menus for selecting units today for the 5 buttons on the top.  So now you send the battalion to attack the enemy base. ;)

EDIT:  wait, why was this post rated down?  was this insulting to anyone, if so, how?

Idk. I fixed :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55940
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Battlefield
« Reply #29 on: November 09, 2010, 11:57:21 pm »
I'll go check the database later to see if it matches a recent wave of thumbs down. Just in case. It could just be someone who accidentally hit the - tho. Nice progress by the way :)
Dream of Omnimaga