Hey guys,
I edited this topic, to pretend creating a lot of new topics, just because this was solved pretty fast, it kinda belongs to the old problem
(It was named “IndexOutOfRange Error”)
As the old problem was self-solved (I got this error, cause the webRequest (www) was wrong and therefore couldn’t format the information given. This was because dropbox only downloads/opens files (like .php) instead of running/executing them.
So I have another problem. I can’t use dropbox for the above reason, and I store the files on my webspace XYZ.de/game/ (for example) and my webplayer+html is stored on dropbox (because of the https I get). Unity blocks the connection to my php files on the webspace, with the reason “crossdomain security error” thingy…
I’ve created the xml file as needed (look at my second post in here) but I still get the same error (I’m using FireBug to see the Network Connection being sent) although it has the crossdomain.xml file now (firebug shows the xml content as answer/response)
Any advice here what I’m doing wrong? Did I missed something?
You are probably going over your index by one. Sorry, but that is most likely the case.
Best to post the offending code.
0-5 needs to be initialised with 6. This is a bug somewhere in your code.
Often if this happened to me, it was because I had been in the habit of upping my count, countArrayMembers++, before I collected a member. If you collect a member then up up. It is better.
*edit
removed the unneeded code.
I found it out, it’s dropbox itself as it just gives me a download version of all files, so I get the total php.file instead of just running it’s functions.
Problem now: I have to use my webspace for the actions, but I have this crossdomain error, how can I solve this? I’ve created a crossdowmain.xml with notepad++ and stored it on the domain I want to access the php-files, but I still get the same security error, although it has the crossdomain.xml file.
-
Could someboy tell me step-by-step how to create that file, maybe I’m missing an option
(my approach so far was, notepad++ typing that xml code found from unity in it and saving it as xml with konversion ANSI, then placing it on the main domain I want to access the files from)
-
Is there something else I have to do, to make it work? Some settings, option I need to change, not just that xml file?
You mean the crossdomain one? (the OutOfRange error is fixed, as it comes from the dropbox download stuff, it gives me the source-code instead of just the echo command)
When I start the webplayer I get this error:
SecurityException: No valid crossdomain policy available to allow access
(“firebug” says file not found: http://mydomain.de/crossdomain.xml)
Then I created the crossdomain.xml file via notepad++ look before post, and I still get the same error like before, but firebug tells me the he found the file and this is the response of it:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
So what did I forgot, why it’s not working?