473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C# EXE and website integration?

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
2 1846
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brian Murphy | last post by:
I have a php-based yahoo-like web directory.I wanna give webmasters the possiblity to integrate my whole directory in their websites with their own formatting.I wanna this inclusion to be possible...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
0
by: Brett | last post by:
I have a website written in Coldfusion MX and also uses VB.NET apps to do certain processes. I'm going to create an area that only the website administrator will have access to. Is there any...
7
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the...
9
by: Nick Wouters | last post by:
Dear All my second question here -> We are going to rebuild an existing website from classic asp to ASP.net v2. We are fully aware we better build this website again, so we made a team of 9...
1
by: YellowfinTeam | last post by:
Marketplace: Yellowfin reporting 3.1 with BIRT Integration Yellowfin is proud to announce the release of 3.1. The major theme of this release is enhanced integration capability. We have...
0
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website...
5
by: rockdale | last post by:
Hi, all: I have a website with its own login page. Now one of my clients want their employees log into my website from their website. They want to have their login page (look and feel are...
4
by: Dave | last post by:
Hi, I'm after some advice. Basically, I maintain a website that uses a lot of php with a MySQL database. I'd like to add the ability of visitors to pay for a service online using a credit card....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.