@Dinoclor
I really can't help you there, I don't know what the password for your mysql installation is.
@jji7skyline
It is already out, however my web hosting company's disks crashed, so I'll have to redo my website. (which I don't currently have the time to do)
Offline
bobbybee wrote:
@Dinoclor
I really can't help you there, I don't know what the password for your mysql installation is.
@jji7skyline
It is already out, however my web hosting company's disks crashed, so I'll have to redo my website. (which I don't currently have the time to do)
I'm going to try reinstalling mysql, because my pass to mysql is my pass to my acc. Should I install it with a database or without a database?
Offline
Oh, if you know what your password is, type it in in the mysql.h MYSQL_PASSWORD define.
Offline
MAC PLEASE.
I want a mac version, since Mono doesn't work that well with my computer. I'd like to program the project, and be a beta tester, but I just use books to help me create code for C++, C and C#. I also use books for java, but I've memorized Batch and VBScript. Javascript is a bit inbetween, and Scratch is visual code.
Offline
TRocket wrote:
Please can i beta test
languages:
scratch
JAVA
php
Sorry not much c but i can still help you!
Beta testing is over.
Offline
@Scratchthatguys
I originally did this on a mac, this is a mac that I am typing this message on. I do not know what you mean about Mono not working, I did not even provide a Visual Studio Solution that you could have used. Anyways. (sigh)
Offline
bobbybee wrote:
Oh, if you know what your password is, type it in in the mysql.h MYSQL_PASSWORD define.
It's still a problem.
Offline
I really couldn't help you in that case.
Offline
Have you fixed it, yet?
Offline
http://firemmo.site50.net/readme.html - Seems that there was a server failure at 000webhost. The site was lost D:
Offline
Yeah, I realized that. If you are interested in this, I can re-upload the files, (in a zip, of course), but I don't have a backup of the docs. (I will be able to help you within these forums)
Offline
Can you post a link to the download so I can try installing this on a mac? (Maybe that will work.)
Offline
Sorry for the late response, but I fixed it (partially). I uploaded the original, along with a version that does not have the mysql stuff in it. Try that version, it might work better.
Offline
bobbybee wrote:
Sorry for the late response, but I fixed it (partially). I uploaded the original, along with a version that does not have the mysql stuff in it. Try that version, it might work better.
OK
<EDIT>
I get this error message in the no mysql version:
/tmp/ccTwrB73.o: In function `main':
main.c:(.text+0x337): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
Can you tell me how to fix it?
Last edited by Dinoclor (2011-08-26 11:34:03)
Offline
The command I gave you is what to use with a mac, you need to use a different command for ubuntu: 'gcc -pthread -o server handlers.c main.c' (without quotes)
EDIT: Also, add at the top '#include <signal.h>' (it was in the mysql version, but it was deleted when I removed the mysql code.)
Last edited by bobbybee (2011-08-26 13:22:06)
Offline
Wait, what
How do you make pets like the scripted ones in Club Penguin?
Offline
Make 'em in scratch, and have them follow you. (I don't really understand what you mean)
Offline
Type './server' to start the server, and I'll upload an example application for you to try out. Use the first post for general guide of what to do, learn some stuff about remote sensor connections, (they're on the wiki, a link is on the first post) and try to make some small stuff. Soon, you may want to start with the MySQL version, but you can always implement something simple that just has a bunch of variables to store everything you need to have stored. It shouldn't be too complicated (I hope).
Offline
Now I get this error:
ERROR Binding
When I run ./server.
Last edited by Dinoclor (2011-08-27 10:04:48)
Offline
@Bobbybee , instead of writing the server on c / C++ you might want to try out node.js first
as that is evvent based and with things like socket.io for flash and well nodes inbuilt client event emitter thats much much more powerful and realtime with easyness of code then C or C++ (trust me i did both and for me Node.js is much much better then C++ )
1 more benifit is node.js runs flawlessly on all platforms so you dont have the above said bugs !
Last edited by fanofcena (2011-08-27 13:39:34)
Offline
@Dinoclor
That means that you have the port set to something that was already binded (basically another application is using it). If it is the first time running the server, it is possible that another application uses the port you had it set to. If you ran it before, and the applications open are the exact same, then that means that my application could properly close (I had a fix implemented before, but it didn't do much). Wait about 5 minutes in between closing the server so the operating system registers that the application is closed. If the problem does not cease when the above instructions are perform, you may consider rebooting you system.
@Fanofcena, I haven't looked into node.js, but I would almost guarantee you that it would be much, much slower than pure vanilla C, as C is closer to the hardware. Also, this project was mostly done for a learning purpose, and i doubt would be practical in a real world application. Either way, if you looked at the code (which I'm starting to the doubt) you would know I have implemented an easier alternative to event based applications, and it benefits be because I have the implementation at my fingertips, and there is no reverse-engineering involved.
Offline
K, it's bound. However, I don't get what I'm supposed to do with the drawing project and what it's supposed to demonstrate. I'm finding this a little confusing...
Offline
On computer 1:
1. Open scratch.
2. Open the drawing project.
3. A dialog should pop up that says "Remote sensors connection enabled"
4. Start the server
5. Open client.fla
6. Modify the host variable to your ip address.
7. Modify the port variable to match the port you have set in FireMMO's code. (If you didn't change the port it will be 7070)
8. Publish it to a mac executable
9. Close flash
10. Open client.app (it should be created in step 7)
11. Go back to scratch
On mac 2 (important that this one is a mac):
1. Copy client.app from computer 1 onto drive. (thumb drive comes to mind)
2. Download the drawing project
3. Open client.app
4. Open the drawing project
5. Again, the dialog box should pop up.
6. Drag the set variable block onto the workspace (no idea what its called)
7. Change the variable to host
8. Change the value to 0
9. Double click it
10. Drag it back to the block palette
On both computers click the green flag.
On computer 1 draw with the mouse
...and on computer 2 the design should appear (there are bugs, it will look distorted)
(I know that was a bit confusing and long, but that would be a life of programming. Feel free to ask any questions if you need to)
Offline