By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

C# EXE and website integration?

P: n/a
hey all,

I have developed a flash game. I am trying to prevent cheaters from
submitting fake high scores. To do this, I record ever action they
make in the game, and when the game is over I send all these actions
and their high score to the server.

On the server side I have made a C# application that reads in the
actions they made and their high score. The C# application then loads
the flash game and recreates what they did in their game. At the end
of the recreation, if the score they claim they had matches they score
that their actions result in, I submit the score to the database. If
it doesn't match, I know they cheated (ie. edited a memory address)
and I don't submit the score to the database.

That all works great.

However, the C# appllcation is just an EXE file that reads in
parameters. I'm trying to figure out a way to integrate everything so
that when the user playing the flash game ends their game, the C# code
will immediatley get the values and determine if they were cheating.
If they were not cheating, it'll thank the user for playing and
forward them back to the game section of the website.

I'm not sure how to do this. The swf file will be embedded in an asp/
php/html page.... can I use asp/php/html to pass data to an EXE file
on the server and then read the results passed back from the EXE?

If that's not possible, any other ideas how this can be done?

Thanks so much for any help you can give!!

Ryan

Nov 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Well, on the server, you are not going to run an EXE. Rather, you would
have a web service or an ASPX page which would take the information, process
it, and return a result.

Of course, you then have the problem of having to secure the information
that is passed from the flash plugin to your website.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Sparticus" <sp*************@thesparticusarena.comwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
hey all,

I have developed a flash game. I am trying to prevent cheaters from
submitting fake high scores. To do this, I record ever action they
make in the game, and when the game is over I send all these actions
and their high score to the server.

On the server side I have made a C# application that reads in the
actions they made and their high score. The C# application then loads
the flash game and recreates what they did in their game. At the end
of the recreation, if the score they claim they had matches they score
that their actions result in, I submit the score to the database. If
it doesn't match, I know they cheated (ie. edited a memory address)
and I don't submit the score to the database.

That all works great.

However, the C# appllcation is just an EXE file that reads in
parameters. I'm trying to figure out a way to integrate everything so
that when the user playing the flash game ends their game, the C# code
will immediatley get the values and determine if they were cheating.
If they were not cheating, it'll thank the user for playing and
forward them back to the game section of the website.

I'm not sure how to do this. The swf file will be embedded in an asp/
php/html page.... can I use asp/php/html to pass data to an EXE file
on the server and then read the results passed back from the EXE?

If that's not possible, any other ideas how this can be done?

Thanks so much for any help you can give!!

Ryan
Nov 9 '07 #2

P: n/a
Sparticus wrote:
I have developed a flash game. I am trying to prevent cheaters from
submitting fake high scores. To do this, I record ever action they
make in the game, and when the game is over I send all these actions
and their high score to the server.

On the server side I have made a C# application that reads in the
actions they made and their high score. The C# application then loads
the flash game and recreates what they did in their game. At the end
of the recreation, if the score they claim they had matches they score
that their actions result in, I submit the score to the database. If
it doesn't match, I know they cheated (ie. edited a memory address)
and I don't submit the score to the database.
However, the C# appllcation is just an EXE file that reads in
parameters. I'm trying to figure out a way to integrate everything so
that when the user playing the flash game ends their game, the C# code
will immediatley get the values and determine if they were cheating.
If they were not cheating, it'll thank the user for playing and
forward them back to the game section of the website.

I'm not sure how to do this. The swf file will be embedded in an asp/
php/html page.... can I use asp/php/html to pass data to an EXE file
on the server and then read the results passed back from the EXE?

If that's not possible, any other ideas how this can be done?
HTML: no way

ASP: you could (if security allows) make you C# code a COM object
and call it from ASP

PHP: you could (if security allows) have PHP run the EXE

The issue is the security.

If the server has .NET, then Nicholas's advice about a
web services hosted in ASP.NET would make things a lot
simpler.

Arne
Nov 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.