Recent posts by ArcStudios on Kongregate

Flag Post

Topic: Game Programming / [?]Multiplayer, Anti-Cheating, and True random numbers

Yeah that sounds more solid. Thanks Solanix!

 
Flag Post

Topic: Game Programming / [?]Multiplayer, Anti-Cheating, and True random numbers

Amazing. Any host recommendations? I think I was orginally going with player.io but now its on yahoo, Have to relearn the pricing system.

 
Flag Post

Topic: Game Programming / [?]Multiplayer, Anti-Cheating, and True random numbers

Cool I made a generator. If it has the same seed it generates the same identical array of integers.

Originally posted by vesperbot:
Originally posted by saybox:

A RNG and a seed, like Draco suggested, might work better but it depends on the gameplay I guess.

A PRNG you probably want to say, aka “pseudo-random”. And yes, this way you record the starting seed (try making it more than 32 bits long, though) and pass it into replay routine so it’ll generate the very same “random” numbers and check for interference from what’s given in score submission.

32 bits.. so -2147483648 through 2147483647 ?
So this will be my first time setting up a multiplayer capable flash game, I’m a little confused about what I need the server and the application to say back and forth to eachother.
I’m guessing I have the application set a seed for itself on startup. When I send the score to the server I should send the seed as well? And the server then takes the score and the seed number, checks the seed number by replaying the seed and seeing if it matches the score, if it does it posts ? And the reason why this works is because someone would have to know the seed number capable of their wanted results versus the results they had.

Also is it important that the seed be unique to every play session, I could see how forcing it to be unique would prevent someone from saving a seed from a session and trying to repeatedly upload it.

 
Flag Post

Topic: Game Programming / [?]Multiplayer, Anti-Cheating, and True random numbers

Still reading and planning, just wanted to jump in and say this was an extremely helpful post. I won’t be calling this number very often during gameplay but long term it was important to note the reseed as well. Going localized sounds more secure then I thought multiplayer could be, ultimately I thought I had to accept some form of cheating here or there that would potentially ruin the social experiment if it was prevalent enough but this sounds great. I’ll update later.

 
Flag Post

Topic: Game Programming / what about a good Flash Chess?

Thank you for that little gem Draco, I didn’t know about it. Omg when the knight gets his arm lopped off and falls over.

 
Flag Post

Topic: Game Programming / [?]Multiplayer, Anti-Cheating, and True random numbers

Using actionscript 3.0

I need a second opinion about a project I want to do.
The plan is to make this multiplayer, and use Random.org to generate random numbers for the game.

The integrity of the game and minimizing cheating is important to me because the game is more of a social experiment then a game. I know preventing cheating outright is not feasible. The scores for people playing will be displayed in a leader board. I have not considered what host to use, I won’t be able to afford anything but a free host with my 0 dollars of income, but I have high hopes and think I may have enough traffic to later change to something paid.

The only way that they could cheat, that I’ve considered is by grabbing the url request for random.org and find out what data was received. Which honestly doesn’t sound difficult to me.

I don’t think there would be a way for me to remove impossible results, as all results will be possible. Although I could remove results that were continuously perfect, but I’d feel gross doing it, as its possible they really could have done it legit. I wish I could go into detail about the project, but that’s all I want to say.

Is generating this random number whats going to give me the loop?
It’s pretty important for it to be as random as possible, and generating a number from atmospheric noise sounds like the best way to go.

Below is what I’ll be using or something similar.

function getRandomNum(min, max) {
    var randTextURLRequest:URLRequest = new URLRequest("http://www.random.org/integers/?num=1&min=" + min + "&max=" + max + "&col=1&base=10&format=plain&rnd=new");
    var randTextLoader:URLLoader = new URLLoader();
    randTextLoader.addEventListener(Event.COMPLETE, randCompleteHandler);
    randTextLoader.load(randTextURLRequest);
}

function randCompleteHandler(e:Event)
{
    var randVal = Number(randTextLoader.data);
    trace("Number " + randVal + " selected");
}
 
Flag Post

Topic: Game Programming / Questions.

whats your preferred program then Draco?

 
Flag Post

Topic: Game Programming / Text based rpg

Aesica means buisiness too, you really can easily, so easily skip over something or just completely fail at reading thanks to your brain.

 
Flag Post

Topic: Game Programming / weird url issue

So I changed my tumblr to use my new domain.
so its username.mywebsite.com instead of username.tumblr.com

when at my website, i click on the link to my tumblr, but the url in the top of my browser doesnt change. So by looking at that, it seems I am at my website url, but I’m not, I’m at my tumblr url.

Just tried it with firefox as well as my default opera, and same thing. If I go to my tumblr, the url in the browser doesnt change to show the new location.

Is this abnormal behavior?

Edit: hmm I think its my html actually, because if I go to kongregate instead, same thing. Sorry I wasted your time, I’ll post the solution once I find it.

E: wow this still seems kind of abnormal, its like I permanently break it. Once you click on one of the links, it never changes the destination url the entire time you are on the website, for example I went to my kong profile and then went back to here in the forums and the destination url is still my website, lol. But I bet its just my html errors.

 
Flag Post

Topic: Game Programming / flash not sending email

actually I think its because I didn’t setup my php.ini hold on…
E: ok I have a few reasons for why this may not be working.
A) because I use comcast, and because of that my port 25 may be being blocked, which I think I can confirm forwarding my port 25 doesnt allow canyouseeme to reach my port 25.
B) my config files are not set properly
C) xampp alone I dont believe has the capability, so you were right.

my solution is to try to use stmp.gmail.com as a relay potentially, we’ll see how it goes.
Thankfully my code should work in theory and the finished product is for my client whom this code will probably work for.
I’ll post back how my solution went, I’m wary of diving into these config files to set it up but it must be done.
Not sure though, gmail uses port 465 and I think comcast may be blocking that port as well.

 
Flag Post

Topic: Game Programming / flash not sending email

ah yes, i see that there was now, now I’ve changed it to this but still no email, even with this direct approach.

<?php
    $to = "arcstudios[at]hotmail.com";
    $subject = "subject";
    $message = "Message";
    $from = "testBot";
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    echo "Successfully sent";
?>
 
Flag Post

Topic: Game Programming / flash not sending email

In my website folder is the swf file and php file, the same place my default page is index.html

In my index.html file, in the header i embed flash

<object width="300" height="100">
<param name="movie" value="Untitled-1.swf">
<embed src="Untitled-1.swf" width="300" height="100">
</embed>
</object>

the flash file simply sends an email upon loading.

public function Main()
{
	var variables:URLVariables = new URLVariables();
	variables.to = "whoever";
	variables.message = "text";
	variables.subject = "subject";
	var request:URLRequest = new URLRequest( "yourScript.php" );
	request.method = URLRequestMethod.POST;
	request.data = variables;
	var loader:URLLoader = new URLLoader();
	loader.addEventListener(Event.COMPLETE, onComplete );
	loader.load( request );	
}
private function onComplete( e:Event ) : void
{
	trace( URLLoader( e.target ).data.toString() );
}

But upon going to my website, and then checking my email nothing has sent. I’m using XAMPP to host my website, but php is enabled. So that shouldn’t be an issue. Is there a port that should be open? Is my syntax wrong?

 
Flag Post

Topic: Game Programming / Haxe/OpenFL primer -- If Flash dies, this is your lifeboat

playerio has moved to yahoo, another sign?

 
Flag Post

Topic: Game Programming / my website

oh interesting, I thought I could just throw together an html page. Thank you for sharing this sumgato, ill make good use of this testing website to fix these issues.

oh WOW. 49 errors?? lol i am terrible at html
at least it looks pretty from my point of view.. time to knock some of these out.

 
Flag Post

Topic: Serious Discussion / Plasma projectiles?

I know there isn’t anything known as a “graviton” it was an entirely fictional concept to explain holding together the plasma. lol
Doesn’t large mass cause gravity? And thats why the moon has much lower gravity, because its smaller and doesnt have as much tug. I haven’t read einsteins theory of relativity yet so I assume we don’t know what really “causes” gravity, we only know that mass mathmatically equals a certain amount of gravity? Thank you for the links.

 
Flag Post

Topic: Serious Discussion / Plasma projectiles?

in the ficional game series XCOM you can research and unlock plasma weapons. A game based off of xcom called Xenonauts you can also do this and the description for the the weapon talks about using a “graviton emitter” to keep the plasma together or else it will disperse into hot gas.

In the real world is this really how we theorize using plasma as a projectile? keeping the plasma together somehow and casting it. And is this really how plasma behaves?

 
Flag Post

Topic: Game Programming / my website

Ok, now it should be live..?
Any tips you guys can give me on general security?
Hosting this myself : )
E: woo, I am live then. Thank you.

 
Flag Post

Topic: Game Programming / my website

 
Flag Post

Topic: Game Programming / my website

can you guys access (removed by OP) ?
it works when i access it from my computer, but when i go into the next room and try to go to it, it takes a few minutes of loading and then cant display page.
Edit: nope, my port is still not open, nevermind.
Edit: Ok. Hows it look now?

 
Flag Post

Topic: Game Programming / [Unity] Animation State Machine

I dont know anything about unity but…
Whats the WrapMode set to? Does it inherit anything that could be causing this unexpected behavior?

animation
WrapMode
Possibly Similar issue

 
Flag Post

Topic: Game Programming / Mochi Shutting Down

Originally posted by FlashGrenade:

Don’t look at this as a sign that Flash is no longer a viable means to create solid games.
True Flash is no longer supported as a must have in web and mobile development,
which is probably one of the reasons that MochiAds is now shut down. But you can still
make a killer game in as3, port it out to the mobile devices and get your ad revenue from there.

Hijack. Whats the “next thing” then? Unity? Are we doomed to stop creating games for computer and make them instead for smart phones and other smart devices? lol I spent years of my life getting better at as3… _

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

@Draco18s Dude. That is sickkk. Is this something you’re just whipping up for fun, will I get to see it go public?

 
Flag Post

Topic: Game Programming / Game Maker Studio not Supported?

oh whaaaat. Thank you HTML5.
Now I can post my old as heck fusion games.

 
Flag Post

Topic: Game Programming / Random Word Generator

whaaaaat. I would get my money back.
I would pay someone to teach me 3.0, but not 2.0

 
Flag Post

Topic: Game Programming / PHP and as3

Alright I might as well redirect this post. When I get this php email form done and can access it with flash,
how can i keep this secure?
I’ll keep searching.