j/k I wish, someone should make a save to draft feature. type +1 if you vote this idea
Printable View
j/k I wish, someone should make a save to draft feature. type +1 if you vote this idea
You site, all get onscreen is
//if IE4+ document.onselectstart=new Function ("return false") document.oncontextmenu=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable }
I was doing testing that day, try again
you sounds volume no stay zero after close window open gain
environmen sound not stay mute or zero when i set and close winodw, back full wen open againn
were is gamme, i move all is
Hey, thanks for that bug report :) I will fix it when I get some time.
you change many thing no change this, many thing no work with porperly, no instruction too
I will get the slider running good today just for you :)
Hey @terrencing I got the slider saving system working for ya.. Still doesn't affect the sounds until I find a clever way to work with all environment sounds at once
look like use to much enterframe, you can do put all enviro sound in array ant cotrol theem togever that way
if you no not how use array very well, you can try same nearly.
you can use object array with sound and other detaill inside, maybe so
or make sound object arrays with no detail like maybePHP Code:var eSounds:Array = new Array("hammer", "axe", "door", "sword");// library names;
var eTotal:Number = eSounds.length;
var playingSounds:Array = new Array();
var i:Number;
for (i = 0; i < eTotal; i++)
{
var newObject:Object = Object(this[eSounds[i]]);
newObject.sound = new Sound(this[eSounds[i]]);
newObject.named = eSounds[i];
newObject.sound.attachSound(eSounds[i]);
newObject.sound.setVolume(100);
newObject.sound.start(0,Number.MAX_VALUE);
playingSounds.push(newObject);
trace("Sound:" + playingSounds[i].named + "\t|\tvolume:" + playingSounds[i].sound.getVolume());
}
but.onPress = function():Void
{
setVolumes();
};
function setVolumes():Void
{
for (i = 0; i < eTotal; i++)
{
playingSounds[i].sound.setVolume(5);
trace("Sound:" + playingSounds[i].named + "\t|\tvolume:" + playingSounds[i].sound.getVolume());
}
}
you need use slide bar, same principlesPHP Code:var eSounds:Array = new Array("hammer", "axe", "door", "sword");// library names
var eTotal:Number = eSounds.length;
var playingSounds:Array = new Array();
var i:Number;
for (i = 0; i < eTotal; i++)
{
var newSound:Sound = new Sound(this[eSounds[i]]);
newSound.attachSound(eSounds[i]);
newSound.setVolume(100);
newSound.start(0,Number.MAX_VALUE);
playingSounds.push(newSound);
trace("Volume:" + playingSounds[i].getVolume());
}
but.onPress = function():Void
{
setVolumes();
};
function setVolumes():Void
{
for (i = 0; i < eTotal; i++)
{
playingSounds[i].setVolume(5);
trace("Volume:" + playingSounds[i].getVolume());
}
}
I do my own method for security reasons client side, thanks
volume have no thing do with security, maybe you save users volume settins in db, you meaning server side
Everything has to do with security angel
update: users can now store there inventory items server side!
update: Indo Castles now has multiplayer, tiny bit buggy still working on it
update: you can now shoot eyeballs and see other people online shoot em, still working on hp and hits
Hi Alloy,
I know the address to your site as you signed the shout box on my site, however, it seems there is no address here for people to look at your updates that you keep telling us about.
Chevs
Hi, thanks for noticing fruitbeard, I don't really want users who are looking to play, join just yet, i just add my log here to see how fast i'm capable of doing each update, but anyone who knows the link is free to register :D
hp amount now broadcasts for each player in real time, also magic strikes and types boadcast in realtime in version 0.2.9p, still no pvp yet.
disconnected users now log out all the time! be it your laptops outa battery, you exit the window, or you click the logout button :)
chat now appears over users heads
Chat uses 10000()(()()x less bandwidth now, scrollbar for chat is also fixed, and chat is clear for users who just logged in and chat logs are stored in a closed environment
Hi Alooy,
I tried to look today but it would not load - 4 times.
Your hit counter tells not the truth, if you refresh as I did to see if the game would load again(which it did not), the counter went up.
I use a counter that only adds if you have a new ip address (not in the list of visited addresses), makes it slightly more real. I cam imagine that at least a third or more of the visits are bots and of course people refreshing or perhaps logging out.
I wouldnt mind a quick glance if all these updates you keep saying are true and working.
Hi, I removed the actual game for a day, I have to remove this bug that exposes the way a certain part of the game works sorry about that, I dont advise playing the game yet, its just pre alpha testing stuff but yeah all the updates are true :D
I will try out ip collection than, is it legal?
HI,
I'm not sure if it's legal or illegal, however ,all you are doing is creating a list of which ones have visited your site, not doing anything with them, most peoples ip change after a while automatically anyway.
Saying that, Google and other places store your ip for certain things, I think this place even uses your ip for something or another!!
How I do it is like so,
and use vistText.text = ExternalInterface.call('countUnique'); in flashPHP Code:<script language="JavaScript">
function countUnique()
{
count = '<?php
//error_reporting(0);
$ip = (getenv("HTTP_X_FORWARDED_FOR")) ? getenv("HTTP_X_FORWARDED_FOR") : getenv("REMOTE_ADDR");
$theFile ='ipvisits.txt';
$lines = file($theFile,FILE_IGNORE_NEW_LINES);
$count = count($lines);
if (in_array($ip,$lines))
{
echo $count;
}
else
{
$count++;
$addNew = fopen($theFile,"a+");
fwrite($addNew, "\n".$ip);
fclose($addNew);
echo $count;
}
?>'
return count;
}
</script>
then you need a txt file (ipvisits.txt in this example) in the same directory or wherever you like it but change the code accordingly
but you would also need to give your page a .php extension for this to work
Hey nice, Ill try it out I've never tried ExternalInterface.call on flash
Works great :D
Hi,
Excellent, I was just in the process of sending the sample files, but FK had an error so it didn't post.
I asume you also usedPHP Code:import flash.external.ExternalInterface;
if(ExternalInterface)
{
visitText.text = ExternalInterface.call('countUnique');
}
nope, i didnt use your flash code, I just ended up using your php js + also making it w+ to another textfile the actual output number and from flash just loading up the textfile, im going to make a new hitcounter design now :P
If you want to try this slightly different method that I tried its
flash code:
php+js code:PHP Code:loadFile = new LoadVars();
loadFile.onData = function(data){
hits.text = data;
}
loadFile.load("http://www.indocastles.com/play/hits.txt");
thanks for contributing :DPHP Code:<script language="JavaScript">
function countUnique()
{
count = '<?php
//error_reporting(0);
$ip = (getenv("HTTP_X_FORWARDED_FOR")) ? getenv("HTTP_X_FORWARDED_FOR") : getenv("REMOTE_ADDR");
$theFile ='ipvisits.txt';
$theFileNum = 'hits.txt';
$lines = file($theFile,FILE_IGNORE_NEW_LINES);
$count = count($lines);
if (in_array($ip,$lines))
{
echo $count;
}
else
{
$count++;
$addNew = fopen($theFile,"a+");
fwrite($addNew, "\n".$ip);
fclose($addNew);
$addNum = fopen($theFileNum,"w+");
fwrite($addNum, $count);
fclose($addNum);
echo $count;
}
?>'
return count;
}
</script>
Hi,
It's just the same exept you make it go through two files thats all and without using external interface.
You could also avoid using the javascript the way you are doing it by just calling the php file, it works for you anyway.
I'm not sure where you are calling the javascript from though
Glad I helped.
It seems to be called upon page load without even having had the swf on it, anyways the counters up, the game will be up tonight
ok i fixed le bug, you are welcome to test it out and make 2 accounts and try to talk to your self walk around: note the game is still in pre alpha and you cant attack anyone, you can just walk around with anyone online, and chat with em and shoot and them but not hurt them, 0 game play is released as of now,
in version 0.2.9t patched a bug that would logout random players who were logged on for no reason, and game uses 6% less cpu usage overall than previous versions
lol one of the unique ip visits was a web crawler xD @fruitbeard
Hi,
I had a look but didnt regsiter.
Out of the 12 visits you have had ( remember your own ip changes randomly too, or you can reset your router), one being me the other being a crawler, that makes around 10%, thats quite high especially when the visitor numbers get bigger.
I imagine you might get more robots and crawlers as and when you advertise your web address more.
hmm idk, still doesn't seem reliable I have a feeling someone can just use a proxy and make abunch of hits too, but the hit counters just for looks I dont really care much about its other purposes :confused:
Hi,
Theres nothing meant to be reliable about it Alloy, it merely stops people making an extra log count if they have already visited using their current ip.
Of course somebody can use a proxy, but it will add that proxy address to the list once and therefore only one hit given no matter how many times they visit or refresh.
I'm not so sure you understand what it is doing really and it certainly isn't any security system.
Hit counters are so nineties anyway.