Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[COMET]Comet Camera Tutorial

Junior Spellweaver
Joined
May 15, 2014
Messages
165
Reaction score
34
Hello, saw that many had troubles fixing the camera on comet, so I thought why not make a little tutorial? Let's get straight into it.

Things needed:
Comet the release made by MetusMeth aka Ryan.
This camera.php file, .
external_wallitem_image_poster.swf, .
A brain :)

So start off by heading to the emulators database and look for "server_configuration" table. There look for camera_photo_url. It will look something like this "http://localhost/swf/photos/%photoId%.png". That's where all of the images that are made will be saved.

Now head over to your swfs folder and extract the downloaded swfs inside "dcr > hof_furni". Now open up your furnidata.xml and instert this at the bottom of your furnidata right next to <roomitemtypes>(to the right of room types so that <roomitemtypes> wraps around that xml below:
Code:
<furnitype id="50001" classname="external_image_wallitem_poster">    <revision>57409</revision>    <name>Camera Pic</name>    <description>Your best shots from the hotel.</description>    <adurl></adurl>    <offerid>-1</offerid>    <buyout>0</buyout>    <rentofferid>-1</rentofferid>    <rentbuyout>0</rentbuyout>    <bc>0</bc>    <excludeddynamic>0</excludeddynamic>    <specialtype>1</specialtype>    <furniline>stories</furniline></furnitype>

Now depending on what CMS you're using this will be done differently but on RevCMS there's a param that's called {sso} which stores your sso basically. Head over to client.php, and edit it with your choice of editor. look for "flash.client.origin" : "popup". Replace it with the text below.
Code:
"flash.client.origin" : "popup","comet.camera.uploadLink" : "{url}/swf/camera.php?ssoTicket={sso}"

If the CMS you're using uses another param to store your sso then just change {sso} into whatever param it uses. Run your emulator and open up client. Try take a photo and you should have camera fully working. If you have any issues let me know :)
 
Elite Diviner
Joined
Sep 17, 2013
Messages
403
Reaction score
58
Hello, saw that many had troubles fixing the camera on comet, so I thought why not make a little tutorial? Let's get straight into it.

Things needed:
Comet the release made by MetusMeth aka Ryan.
This camera.php file, .
external_wallitem_image_poster.swf, .
A brain :)

So start off by heading to the emulators database and look for "server_configuration" table. There look for camera_photo_url. It will look something like this "http://localhost/swf/photos/%photoId%.png". That's where all of the images that are made will be saved.

Now head over to your swfs folder and extract the downloaded swfs inside "dcr > hof_furni". Now open up your furnidata.xml and instert this at the bottom of your furnidata right next to <roomitemtypes>(to the right of room types so that <roomitemtypes> wraps around that xml below:
Code:
<furnitype id="50001" classname="external_image_wallitem_poster">    <revision>57409</revision>    <name>Camera Pic</name>    <description>Your best shots from the hotel.</description>    <adurl></adurl>    <offerid>-1</offerid>    <buyout>0</buyout>    <rentofferid>-1</rentofferid>    <rentbuyout>0</rentbuyout>    <bc>0</bc>    <excludeddynamic>0</excludeddynamic>    <specialtype>1</specialtype>    <furniline>stories</furniline></furnitype>

Now depending on what CMS you're using this will be done differently but on RevCMS there's a param that's called {sso} which stores your sso basically. Head over to client.php, and edit it with your choice of editor. look for "flash.client.origin" : "popup". Replace it with the text below.
Code:
"flash.client.origin" : "popup","comet.camera.uploadLink" : "{url}/swf/camera.php?ssoTicket={sso}"

If the CMS you're using uses another param to store your sso then just change {sso} into whatever param it uses. Run your emulator and open up client. Try take a photo and you should have camera fully working. If you have any issues let me know :)
Why make the same tutorial like on MetusM's github? I though you made a video to how to set it up, but instead you're almost just copy pasting his text, and making a little bit change.
 
Junior Spellweaver
Joined
May 15, 2014
Messages
165
Reaction score
34
Why make the same tutorial like on MetusM's github? I though you made a video to how to set it up, but instead you're almost just copy pasting his text, and making a little bit change.
TBH I havn't even seen his tutorial, just though I'd be nice and do this for you guys, but if you don't appreciate it, feel free to leave. If it worked for you I'm glad it did. You can keep your 1$ lol :)
 
Elite Diviner
Joined
Sep 17, 2013
Messages
403
Reaction score
58
TBH I havn't even seen his tutorial, just though I'd be nice and do this for you guys, but if you don't appreciate it, feel free to leave. If it worked for you I'm glad it did. You can keep your 1$ lol :)

This tutorial looks so much like . But I dont use Comet Server anyway, because I dont see any reason to switch from Arcturus to Comet.
 
Junior Spellweaver
Joined
May 15, 2014
Messages
165
Reaction score
34
This that incomplete script Saamus made? If so credits should be added aye.
This script is made by Leon himself as I know :p So no reason to give credits to him as it's his emulator and poop being used, thought people could calculate some themselves ;)
 
Junior Spellweaver
Joined
May 15, 2014
Messages
165
Reaction score
34
Can you make a video about this? I think people want to see if this tutorial really work, so they dont waste their time on nothing.
Lol? I'll do it dw, just instead of saying that just say "I'm a noob who can't follow a tutorial" and I'll respect that more lol.

Skickat från min FRD-L09 via Tapatalk
 
C# / Java Programmer
Joined
Jan 1, 2007
Messages
346
Reaction score
177
This that incomplete script Saamus made? If so credits should be added aye.

It's not Claudio's renderer, it's just a piece of poop that saves a cropped screenshot. Super handy for uploading porn and shock images. Fake camera, no protection, don't use this.


Edit: to clarify, I'm not saying don't use Comet. I'm sure the public release is fine and it'll get the job done. Just don't use *this* camera. Code the proper JSON handling yourself and use Claudio's renderer. You can find a tool for extracting the image files the renderer needs here: (currently rebuilding it with a GUI, if you know Java it's easy enough to get working though... give me a little bit and I'll make a public release :p)


 
Last edited:
Newbie Spellweaver
Joined
Feb 7, 2017
Messages
8
Reaction score
1
It's not Claudio's renderer, it's just a piece of poop that saves a cropped screenshot. Super handy for uploading porn and shock images. Fake camera, no protection, don't use this.


Edit: to clarify, I'm not saying don't use Comet. I'm sure the public release is fine and it'll get the job done. Just don't use *this* camera. Code the proper JSON handling yourself and use Claudio's renderer. You can find a tool for extracting the image files the renderer needs here:
404 not found.
 
C# / Java Programmer
Joined
Jan 1, 2007
Messages
346
Reaction score
177
404 not found.
Sorry about that, I'm currently rewriting it with a nice GUI and working on refactoring the SWF parsers into a separate library. The current source should compile and work, just don't use the "Extract Icons" option, it's pretty broken. Extract Sprites should work as expected.
 
Back
Top