473,289 Members | 1,840 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,289 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 1842
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....
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.