[SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost

Newbie Spellweaver
Joined
Mar 8, 2025
Messages
40
Reaction score
22
Hello, I've been looking for the Cocolani Island game files for a while, and I finally did find them, however, I'm having trouble hosting the game locally on my PC.

Some general info about this game: It was developed back in 2011, it is a flash game that utilizes .SWF files. It uses SmartFoxServer to handle the multiplayer aspect of it all, and PHP files in order to access and modify its database that is to be used on MySQL. This game has great sentimental value to me, and I'd like to run it offline.

I've had trouble running the game initally: I had to download Flash Player Standalone 32, and when running the SWF file directly it spits an in-game error that says "Failed loading resources or invalid language." I eventually reached the conclusion that it wasn't able to access its own assets that reside in the same folder as the .SWF because it requires those assets to be hosted somewhere.

So I downloaded AppServ, copied everything to the www folder, and it ran perfect by inputting the localhost/cocolani/cocolani.swf link in the standalone flash player 32 program. However, when registering a new player, when it comes time to input the username, it hangs up on "Wait... checking availability of username." Also, when entering whatever username and password in the login information and pressing the login button, it immediately displays an error of "AVATAR DATA NOT AVAILABLE" Which leads me to believe this is a strictly database access issue, even though the mysql database is set up properly in the phpmyadmin thingymajig and is hosted locally on the appropriate port.

So now I'm stumped, and this is the only forum that has at least a handful of people interested in acquiring the cocolani files. Need your help yall, thanks!

Also, if you'd like the files, please DM me on this forum.
 
Last edited:
Solution
Hey all,
I uploaded my Smart Fox Emulator files to Github if anyone interested, which I think is the most complete emulator that is publicly available as of now.




I also updated and fixed some of the SWF bugs and missing SWF & XML files, also logins & registration, I really recommend using this version of the game files.

Here is the link (it also has a modified version of SFS Pro):


Regarding setting up the game this game requires an older version of XAMPP that bundles Apache and PHP.
The recommended version is XAMPP 1.x (PHP 5.x compatible) I'll be using .

You can find all XAMPP versions...
Hello bro,
I followed the steps you explained exactly, but I'm facing an issue: the login field does not appear. When I try to create a new account, it gets stuck while checking for the nickname. I also tried running it on Adobe Flash Player 32 as you did, but it gives me an error saying there is a problem accessing the data.


View attachment 287168

View attachment 287169
View attachment 287170

Finally after much hours sitting on my laptop haha thank you bro
View attachment 287174
Glad everything worked out for you!

Unfortunately, the game in its current state is missing a lot of essential files in order to run the battle system, the registeration server by Turkitutu doesnt seem to work on my end, and some rooms crash the game, whether you get to these rooms by walking to them or teleporting to them using admin powers.
 
Upvote 0
Here's an interesting bit of lost media:

There were plans for 2 more tribes to be added to the game

1755781715213 - [SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost - RaGEZONE Forums


I found these two logos hidden within the asset files for the websits. These were for presumably the ice kingdom (right, the fortress behind the swirly thing represents a kingdom) and a fourth tribe (No idea what that one represents) that was supposed to be released.

Pretty interesting!
 
Upvote 0
Here's an interesting bit of lost media:

There were plans for 2 more tribes to be added to the game

View attachment 287468

I found these two logos hidden within the asset files for the websits. These were for presumably the ice kingdom (right, the fortress behind the swirly thing represents a kingdom) and a fourth tribe (No idea what that one represents) that was supposed to be released.

It looks so interesting bro.

Glad everything worked out for you!

Unfortunately, the game in its current state is missing a lot of essential files in order to run the battle system, the registeration server by Turkitutu doesnt seem to work on my end, and some rooms crash the game, whether you get to these rooms by walking to them or teleporting to them using admin powers.
Yeah this is really unfortunate.
 
Upvote 0
how i can do that ? i mean i have another game that have all the files inside it but idk how to make a local server , i tried to find any ip or port or xmlnetwork stuff there is none except flash.net is mentioned in imports and it does get the information from .php files like userdata.php ..... etc . any help here ? please....
 
Upvote 0
how i can do that ? i mean i have another game that have all the files inside it but idk how to make a local server , i tried to find any ip or port or xmlnetwork stuff there is none except flash.net is mentioned in imports and it does get the information from .php files like userdata.php ..... etc . any help here ? please....
Every game is different from the other in terms of server setup, so I cant help you much if it isnt about Cocolani.
 
Upvote 0
Btw i managed to run the game with Smart Fox server and without the python emulator and registration seems to work fine

1770988918235 - [SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost - RaGEZONE Forums
 
Upvote 0
Hey all,
I uploaded my Smart Fox Emulator files to Github if anyone interested, which I think is the most complete emulator that is publicly available as of now.




I also updated and fixed some of the SWF bugs and missing SWF & XML files, also logins & registration, I really recommend using this version of the game files.

Here is the link (it also has a modified version of SFS Pro):


Regarding setting up the game this game requires an older version of XAMPP that bundles Apache and PHP.
The recommended version is XAMPP 1.x (PHP 5.x compatible) I'll be using .

You can find all XAMPP versions here:

After installing XAMPP launch Apache and Mysql then go to XAMPP/htdocs and delete all files there and extract the .zip content in there
1772298172718 - [SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost - RaGEZONE Forums



then go to localhost/phpmyadmin and create a database named cocolani_battle and use the .sql in my github repo to fill it with all the data the server needs.
1772298229661 - [SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost - RaGEZONE Forums




After that go to SmartFoxServerPRO_1.6.6/Server/config.xml and paste the config_template.xml from my config in there. (also update your DB info in here and in cocolani\php\req\includes\db.php if you are not using XAMPP default)


After that you can access the play page from: localhost/play and register a new account then log in!

1772299671316 - [SOLVED] [TUTORIAL] Running Cocolani Island game on Localhost - RaGEZONE Forums




if you want to directly access the game e.g for flash standalone you have to put the flashvars in the link like this:


and if you want to play online with someone just update the ?ip & regurl & baseURL to whatever is yours.

* running the game directly through flash standalone will cause some bugs since the game needs a browser environment
* cid stands for customer id so 0 = cocolani theme, 1 = eish safari theme
* lang = 0 is english , lang = 1 is Arabic
* the PHP code should get the flashvars from the db dynamically but as of now its just hardcoded in index.html, I'm planning of upgrading the PHP code to 8.0 and so that why I didn't touch it yet.
 
Last edited:
Upvote 0
Solution
Hey all,
I uploaded my Smart Fox Emulator files to Github if anyone interested, which I think is the most complete emulator that is publicly available as of now.
Thank you Faris for all the work you've done. I can't thank you enough for this massive contribution. I hope anyone out there who has been looking for the files gets the closure they've been chasing for, and get to relive their childhood memories in a new light.

What's different in this version?
-The battle system is fixed, both tribes can battle each other in the battle zone!
-Admin control panel now works as expected.
-The puzzles for each tribe now works as intended.
-Shops now work
-It is now possible to host a private server without the use of Radmin
-Smart Fox Server is working (yay!) and fully cracked, enabling an unlimited amount of concurrent players.
-No more missing rooms.

With this, the restoration project is finally complete. I will pin this post as it is the most comprehensive, fully working solution out there.
 
Upvote 0
Hello guys can you please discord me I want help to access the game I am struggling ):





محمود بالله ارسل لي الديسكورد حقك احتاج تساعدني ضروري


I did all and working but I dont know what to put in users table to access the game ): please any help ?
Dont do anything to the database, just boot up the game and register an account like you normally would.
 
Upvote 0
I Can’t figure out why it says Database error although I did all the steps as they should. Please need help.
Did you import the .sql file in the folders you downloaded into your MySQL Database? If you did, its possible the game is trying to access the database using the wrong credentials. The database username and password you enter when you go to localhost/phpmyadmin must match the ones in db.php in the cocolani files.
 
Upvote 0
First of all, thank you all so much, especially Mahmod and Faris for the amazing explanations and for keeping this game alive and cared for all these years.

I finally managed to get the game running, and overall it works pretty much as expected! 🔥

However, I noticed a few issues/bugs that I wanted to mention in case anyone knows fixes for them:

1- Trophies are not being awarded when playing mini games.
The game only counts them as “discovered games”, but I never receive bronze/silver/gold trophies, and I also don’t receive any game coins/money rewards.

2- A lot of house furniture items bug out.
When I buy certain furniture and place it inside my house, it disappears from the inventory without actually appearing in the house. It feels like the item becomes invisible/glitched.
After that, if I leave the house and try entering again, the entire house gets corrupted and gives me an error code when trying to enter.
The only workaround I found is manually deleting the bugged furniture from the database, or deleting the whole house and buying a new one while avoiding the broken furniture items.

For admin access I simply changed my status value to 10 in SQL. Am I doing it right ?

If anyone has ideas for these issues, I’d really appreciate it
 
Last edited:
Upvote 0
Hey all,
I uploaded my Smart Fox Emulator files to Github if anyone interested, which I think is the most complete emulator that is publicly available as of now.




I also updated and fixed some of the SWF bugs and missing SWF & XML files, also logins & registration, I really recommend using this version of the game files.

Here is the link (it also has a modified version of SFS Pro):


Regarding setting up the game this game requires an older version of XAMPP that bundles Apache and PHP.
The recommended version is XAMPP 1.x (PHP 5.x compatible).

You can find it here:

After installing XAMPP launch Apache and Mysql then go to XAMPP/htdocs and delete all files there and extract the .zip content in there
View attachment 296997


then go to localhost/phpmyadmin and create a database named cocolani_battle and use the .sql in my github repo to fill it with all the data the server needs.
View attachment 296998



After that go to SmartFoxServerPRO_1.6.6/Server/config.xml and paste the config_template.xml from my config in there. (also update your DB info in here and in cocolani\php\req\includes\db.php if you are not using XAMPP default)


After that you can access the play page from: localhost/play and register a new account then log in!

View attachment 297002



if you want to directly access the game e.g for flash standalone you have to put the flashvars in the link like this:


and if you want to play online with someone just update the ?ip & regurl & baseURL to whatever is yours.


* cid stands for customer id so 0 = cocolani theme, 1 = eish safari theme
* lang = 0 is english , lang = 1 is Arabic
* the PHP code should get the flashvars from the db dynamically but as of now its just hardcoded in index.html, I'm planning of upgrading the PHP code to 8.0 and so that why I didn't touch it yet.
Honestly Fares, huge respect and thank you so much for all the effort you put into preserving and reviving this game.
What you guys managed to recover and make playable after all these years is genuinely impressive. Seeing Cocolani / Eish Safari running again in 2026 honestly feels unreal 🔥

I’ve been testing the game heavily these past few days and overall it works surprisingly well, but I noticed a few bugs/issues so far:

- Medals/trophies never get awarded at all, and mini games also don’t give any coins/money rewards when winning.

- Global chat messages appear blank/empty after sending them.

- Player profiles are bugged. When opening someone else’s profile, the information/stats don’t display correctly.

- Gift trading seems broken. Almost every item says “cannot be traded”.

- Admin panel is partially broken for me. Teleport works fine, but whenever I use any other admin command (ban/global message/etc.) the game instantly bans ME instead 😅

I have to manually go into the database and set the “cheats” field back to false every time.

Do you happen to know what could be causing the admin panel issue?

Thank you Faris for all the work you've done. I can't thank you enough for this massive contribution. I hope anyone out there who has been looking for the files gets the closure they've been chasing for, and get to relive their childhood memories in a new light.

What's different in this version?
-The battle system is fixed, both tribes can battle each other in the battle zone!
-Admin control panel now works as expected.
-The puzzles for each tribe now works as intended.
-Shops now work
-It is now possible to host a private server without the use of Radmin
-Smart Fox Server is working (yay!) and fully cracked, enabling an unlimited amount of concurrent players.
-No more missing rooms.

With this, the restoration project is finally complete. I will pin this post as it is the most comprehensive, fully working solution out there.
Dear Mahmood can you guide me on how to use the admin portal without geeting banned ? I can only teleport but no way I can use any other option. Any help?
 
Last edited:
Upvote 0
I wanted to thank you for sharing the files and for your help… I really appreciate it. Thank you Mahmoud, also thanks to faris, and I hope we stay in touch. Do you have Discord?
 
Upvote 0
Back