[Released] Ten Thousand (Having Trouble With Strange Error)

Projects that have specifically been abandoned or considered "dead" get moved here, so people will quit bumping them. If your project has wound up here and it should not be, contact a moderator to have it moved back to the land of the living.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

[Released] Ten Thousand (Having Trouble With Strange Error)

Post by Slasher »

Imagine, if you will... A dice game, built in ZDoom, an FPS engine.

It's called Ten Thousand. Or at least, that's what I know it to be called. It may have other names in other places... There are many variations, but the way I know it is this:

You roll 6 dice, up to 3 times. You can end your turn after any roll if you choose. The idea is to be the first player to get 10,000 points. You cannot go beyond 10,000 and your score must be exact to win. So if you have 9000, and you score 1500 points, you cannot have it because it would put you over 10,000 points.

UPDATE:

So I decided to go back to this and improve it since I was bored recently. I've cleaned up a lot of the code and changed a few things to make it easier for me to add later enhancements. But I'm having an issue with this project and I don't know why it's not working. It has keybinds that are set to puke certain scripts. The KEYCONF lump is correctly set up per the wiki on this, and all the relevent scripts for MAP01 have the net keyword, yet when I test this in multiplayer with my brother, it pops up with a message saying "Player tried to puke script X" which is usually the message displayed when they try to puke a script that does not have the net keyword.

Can anyone take a look at it? I've tried everything I can think of and I have no clue why it won't work...

LINK TO FILE: Get it here!



Spoiler: Old Info Here
Last edited by Slasher on Sun Nov 14, 2010 8:54 pm, edited 15 times in total.
User avatar
DBThanatos
Posts: 3101
Joined: Fri Apr 14, 2006 3:17 pm
Location: in "the darkness that lurks in our mind"
Contact:

Re: [WIP] Ten Thousand

Post by DBThanatos »

OK, this was original :P

I didnt quite understand the mechanics but Im insterested. :D
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Re: [WIP] Ten Thousand

Post by Shadelight »

Wow! Very neat idea. :)
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

Thanks. It's a fairly simple game, it only requires 6 dice and a few players. I find it really fun, so I decided to see if I could make it into a ZDoom project, just to see if it was possible. Looks good so far.

The Components:
1. Build an interface that all players can view at the same time, and yet only one player can manipulate at a time. (Working well, AFAICT)

2. Building a system that monitors the current player's selections, rolls, etc... (This is what I'm currently working on.)

3. A scoring system sophisticated enough to recognize how much players need to win, maximum they can have without going over, what the current dice roll is worth... maybe even a suggestion & advice system.

4. A system for ending player's turns and starting the next player's turn.

5. Everything else...(adding sound effects and aesthetic niceties)

6. Extra stuff. (Anything I want to add, just to really spice it up. Random fun stuff to remind you that you're not just playing a dice game, you're playing a unique ZDoom project.)
User avatar
BlackRabite
Posts: 81
Joined: Mon Oct 15, 2007 6:12 am
Location: Australia
Contact:

Re: [WIP] Ten Thousand

Post by BlackRabite »

its over ten thousand!!!!!
User avatar
Unknown_Assassin
Posts: 2468
Joined: Wed Apr 12, 2006 5:17 pm
Location: Where dead carcasses lie
Contact:

Re: [WIP] Ten Thousand

Post by Unknown_Assassin »

Pretty simple, yet original; I'm interested.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

Now I'm working on the scoring system...this is going to be tough... I think. I'm using an array called dice[] which represents the 6 values of the dice. My guess is that it's going to require a considerable amount of for loops, checking for all possible outcomes. For example, when checking for a straight (1-6), I have to consider that it could be in any order. Not completely sure how to do that at the moment, but I'm working on it. If anyone knows some useful tips and tricks for getting that done quickly and easily, I'd appreciate it. And you'll be credited.
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: [WIP] Ten Thousand

Post by hnsolo77 »

AKA yahtzee for ZDooM, seems interesting
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

hnsolo77 wrote:AKA yahtzee for ZDooM
Not quite yahtzee, but very similar.


Damn, this scoring system is very complicated. I think it should be working, but it's not updating my score. The problem may be the score display, though.


Here's the old, nasty confusing code. I don't recommend you look at this, unless you're into self-torture...
Spoiler:

Ok, here is the newer, more simple and efficient code (not quite complete yet, still working on it)
Spoiler:
Last edited by Slasher on Sun Jun 08, 2008 2:32 am, edited 1 time in total.
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: [WIP] Ten Thousand

Post by hnsolo77 »

bah i was oversimplifying it, but as for your code...

i have a headache trying to figure out what it all does..., we need hotwax here stat
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

hnsolo77 wrote:bah i was oversimplifying it, but as for your code...

i have a headache trying to figure out what it all does..., we need hotwax here stat
Actually, it's no longer going to be as complicated as all that, I found a much cleaner and simpler way to achieve the same goals. Consider that above code deprecated.

My new method often turns 5 or 6 of those lines above into 1 line... Which is much easier to read and understand.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

Well, this project is getting done quite quickly.

UPDATE:

1. The scoring system is complete. A few things may have slipped by, and when I release this for testing, if anyone would let me know of such errors, I'll look into it.

2. The game is playable by 1 player, as I've tested. (It's not very fun that way, though.) I will begin multiplayer testing next.

3. After that will be the sound effects and such, as well as other minor details.

4. And finally extras.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

Updated the first post.
User avatar
hnsolo77
Posts: 1446
Joined: Sat Sep 16, 2006 8:06 pm
Location: the mythical land of Toronto Canada. (not really)

Re: [WIP] Ten Thousand

Post by hnsolo77 »

yeah im going to have to try this once you have a beta ready :)
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: [WIP] Ten Thousand

Post by Slasher »

hnsolo77 wrote:yeah im going to have to try this once you have a beta ready :)
I'm going to release for beta testing right after components 1 - 4 are complete. Since 3 of those and half of the 4th is complete, it shouldn't be too long. Maybe even some time today if I'm lucky.
Locked

Return to “Abandoned/Dead Projects”