Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: AngelFish on November 07, 2010, 02:51:56 pm

Title: Battlefield
Post by: AngelFish on November 07, 2010, 02:51:56 pm
Since the Team competition is fully underway, Yunhua and I have decided to announce our project:

Battle will be a turn based Strategy game where the player will compete against an AI for control of a virtual galaxy. The battles will be fought across many different planets and in many different environments. Be prepared to fight on the battlefields of tomorrow.
Title: Re: Battlefield
Post by: MRide on November 07, 2010, 02:54:10 pm
Sounds awesome!  Good luck on it.
Title: Re: Battlefield
Post by: ASHBAD_ALVIN on November 07, 2010, 03:00:02 pm
I'd be interested to see how this game will turn out compared to Life is a Battlefield ;)
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 03:06:27 pm
The similar names were a complete coincidence  :P
Title: Re: Battlefield
Post by: DJ Omnimaga on November 07, 2010, 03:52:53 pm
Interesting, will you have some screenshots? I am curious how the AI will turn out. :)
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 03:58:40 pm
I've already made six screenshots documenting the development of it. It's how Yunhua and I have communicated most of the progress. I'll PM you the next one, if you want. It won't show the game engine, for obvious reasons ;)
Title: Re: Battlefield
Post by: DJ Omnimaga on November 07, 2010, 04:00:23 pm
Ah ok, but I was more wondering if you would post some in public, so people have more info ;D (unless you want to keep most info secret for now?)
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 04:13:55 pm
Posting the game engine is definitely something that might give Raylin an unfair advantage.
Here's a very limited screenshot including a few of the menus. The design hasn't been finalized, so this might be entirely off from the final program.

(http://img.removedfromgame.com/imgs/1289164334-Battle7.gif)
Title: Re: Battlefield
Post by: meishe91 on November 07, 2010, 04:54:13 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?
Title: Re: Battlefield
Post by: Hot_Dog on November 07, 2010, 05:00:52 pm
Since the Team competition is fully underway, Yunhua and I have decided to announce our project:

Team competition?  I can't believe I missed these news.  Is there a link?
Title: Re: Battlefield
Post by: squidgetx on November 07, 2010, 05:04:57 pm
Hot_Dog: http://ourl.ca/7639
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 05:06:57 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.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 07, 2010, 05:47:14 pm
Ah I see, I guess it might be best to not post way too many screenshots either. Nice so far, by the way. I hope you guys finish in time. :)
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 06:01:24 pm
 I doubt any more screenshots will be coming until the release.
Title: Re: Battlefield
Post by: yunhua98 on November 07, 2010, 06:03:23 pm
"Bad Code, Stop Cheating"?  so they're cheating to cheat, and the game is telling them to put the right code in in order to not cheat?  :P  lol, anyway, I did ask for another week, but when is the exact deadline?
also, I will probably work on it more this week though.  ;)
Title: Re: Battlefield
Post by: meishe91 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.
Title: Re: Battlefield
Post by: AngelFish 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.
Title: Re: Battlefield
Post by: meishe91 on November 07, 2010, 07:20:04 pm
Hmm, ok.
Title: Re: Battlefield
Post by: DJ Omnimaga 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.
Title: Re: Battlefield
Post by: AngelFish 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.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 07, 2010, 10:56:03 pm
Yeah I know, I was just giving an example of code system usage in games
Title: Re: Battlefield
Post by: AngelFish on November 07, 2010, 11:01:16 pm
Sorry, didn't get that.
Title: Re: Battlefield
Post by: AngelFish 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.
Title: Re: Battlefield
Post by: yunhua98 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.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 08, 2010, 11:25:36 pm
Nice to hear it's close to finished. When was the contest ending, btw?
Title: Re: Battlefield
Post by: AngelFish on November 09, 2010, 01:27:32 am
I think it ends on Thursday.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 09, 2010, 02:45:26 am
Ah, right. Can't wait to try the entries. ;D
Title: Re: Battlefield
Post by: yunhua98 on November 09, 2010, 05:24:45 pm
at what time should the entry be submitted?  or just anytime on thursday?
Title: Re: Battlefield
Post by: squidgetx 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 :)
Title: Re: Battlefield
Post by: DJ Omnimaga 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 :)
Title: Re: Battlefield
Post by: AngelFish on November 18, 2010, 04:04:15 am
Fixed a couple of major bugs in the game engine. I just have to play around with the pointers now.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 18, 2010, 10:56:25 pm
Pointers? ??? I thought this was in BASIC and for the Team battle contest? ???
Title: Re: Battlefield
Post by: AngelFish on November 18, 2010, 11:13:23 pm
I borrowed a few concepts from Axe for the data structures. The game data is stored in a huge array and the program maintains "pointers" to certain places in the array.
Title: Re: Battlefield
Post by: DJ Omnimaga on November 18, 2010, 11:19:08 pm
Oh ok, I was wondering since you mentionned the word "pointers". Nice :D