Conquer Club

Now that CC uses javascript

Talk about all things related to Conquer Club

Moderator: Community Team

Forum rules
Please read the community guidelines before posting.

Now that CC uses javascript

Postby Grifter on Sat Dec 12, 2009 2:22 pm

Some suggestions were previously rejected as "not technically possible". Perhaps javascript removes that barrier for some old ideas. One of them is the Unlimited Adjacent reinforcement. This allows a player to move all troops to the next adjacent territory much like armies in real life move. To prevent misuse of this feature it should be coded so that once troops are moved into a territory then nothing can be moved out of it.

Any chance this might get revisited?
User avatar
Lieutenant Grifter
 
Posts: 224
Joined: Mon Jul 14, 2008 7:49 pm
Location: Ontario, Canada

Re: Now that CC uses javascript

Postby mibi on Sat Dec 12, 2009 5:35 pm

I hope so, I suggested unlimited adjacent a while ago. my first post actually.
User avatar
Captain mibi
 
Posts: 3350
Joined: Thu Mar 01, 2007 8:19 pm
Location: The Great State of Vermont

Re: Now that CC uses javascript

Postby sherkaner on Sat Dec 12, 2009 5:57 pm

Not related, I think the main problem is that the game doesn't remember its previous position, only the current one. So though it looks small, it does require some coding. But you certainly don't want to do this in client-side javascript, since ppl could alter that behaviour.
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: Now that CC uses javascript

Postby hwhrhett on Sat Dec 12, 2009 6:43 pm

sherkaner wrote:Not related, I think the main problem is that the game doesn't remember its previous position, only the current one. So though it looks small, it does require some coding. But you certainly don't want to do this in client-side javascript, since ppl could alter that behaviour.


but keeping logs of old stuff for the tons and tons of games that are going on at any given time, would probably bog down the servers more than it would improve the game...
Image
User avatar
Cook hwhrhett
 
Posts: 3120
Joined: Fri Jun 02, 2006 8:55 pm
Location: TEXAS --- The Imperial Dragoons

Re: Now that CC uses javascript

Postby natty dread on Sat Dec 12, 2009 9:08 pm

It could be done without remembering previous states of troops. You could just make a code for the reinforcement, where it marks every territory for how many of the troops have already been moved, and this would only need to be done for the time of the reinforcement, so it wouldn't take too much server space either.

So, it would work like this:

Usually, each territory has one variable: troop count (well, troop owner too, but that doesn't apply here).

For the time of reinforcement, we'll give each territory another variable: number of troops that have already been moved.

So when you start reinforcing, all troops that are moved will be taken from the troop count numbers and moved to the second variables. And from those you can't move again. The game could show the troops on the screen like: 6+2, 8+11, which means that you still have 6 troops you can move, and 2 you can't move on that first territory. Or they could be shown as 8(6), 19(8) which would mean 8 total, 6 movable and 19 total, 8 movable.

Then when the reinforcement is over, all the extra variables are added together with the troop count variables, and you won't be needing the extra variables again until the next reinforcement. Thus, they won't take server space, they'd only take a bit of server memory during reinforcements.
Last edited by natty dread on Sat Dec 12, 2009 9:29 pm, edited 1 time in total.
Image
User avatar
Sergeant 1st Class natty dread
 
Posts: 12877
Joined: Fri Feb 08, 2008 8:58 pm
Location: just plain fucked

Re: Now that CC uses javascript

Postby hecter on Sat Dec 12, 2009 9:19 pm

Grifter wrote:Some suggestions were previously rejected as "not technically possible". Perhaps javascript removes that barrier for some old ideas. One of them is the Unlimited Adjacent reinforcement. This allows a player to move all troops to the next adjacent territory much like armies in real life move. To prevent misuse of this feature it should be coded so that once troops are moved into a territory then nothing can be moved out of it.

Any chance this might get revisited?

Not because of Javascript. Javascript is all done in the browser, your computer, while as PHP, what the site is coded in, is all done on the server. If it were done in the browser, it would be VERY easy to just circumvent the script all together.
In heaven... Everything is fine, in heaven... Everything is fine, in heaven... Everything is fine... You got your things, and I've got mine.
Image
User avatar
Private 1st Class hecter
 
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Location: Tying somebody up on the third floor

Re: Now that CC uses javascript

Postby Beckytheblondie on Sun Dec 13, 2009 9:48 pm

i dont do java, not a coffee guy. will my account be canceled/ do you think ill get a refund?
2011-11-07 14:19:43 - StinknLincoln: whoa, what happened?
2011-11-07 14:19:50 - Beckytheblondie: Becky happened
Image
User avatar
Lieutenant Beckytheblondie
 
Posts: 970
Joined: Tue Jun 03, 2008 3:38 pm
Location: Where ♥ Miracles ♥ Happen ◕‿◕

Re: Now that CC uses javascript

Postby Grifter on Sun Dec 13, 2009 10:24 pm

Thanks for the comments. Now that I think about it the changes would have to be done on the server side to prevent cheating. Thus JavaScript will not help.

I wonder if this is the most popular Rejected idea.
User avatar
Lieutenant Grifter
 
Posts: 224
Joined: Mon Jul 14, 2008 7:49 pm
Location: Ontario, Canada


Return to Conquer Club Discussion

Who is online

Users browsing this forum: No registered users