SORRY for the mess, I've already figured it out myself, wish there could be "Delete thread" option for the author...
So, at least I'll post my solution if anyone comes at a similar problem:
Type: Posts; User: Greg; Keyword(s):
SORRY for the mess, I've already figured it out myself, wish there could be "Delete thread" option for the author...
So, at least I'll post my solution if anyone comes at a similar problem:
Yet again no option to edit my last post so...
Wow, I've just found out that there's a documentation of Lacewing at http://lacewing-project.org :D That's great, should be helpful :) I've already...
I'm writing a Win32 App in VC++ 2010 and I'm having problems with adding Lacewing to it. A part of my code:
Well, it's pretty simple. Just try something like this:
-Upon pressing "Space bar" -> Switch lamp on Buzzer 1 (Lamps->Switch (Buzzer))
What kind of Buzzers do you have? The wired or wireless?...
Can we use the edit button?
Yay, we can! xDDD
Sorry, I couldn't post it sooner!
Here's the link to working version:
Request to someone who can do it - please update the link in my first post as I can't edit it any longer for some...
Nope, it doesn't need any external DLLs. Sorry, I'm gonna upload the working version in a moment!
Sorry, but I don't think so as I don't have an XBox to test it on.
Hi, everyone :)
Here goes my first extension :D I've created it for my own needs and I guess not many people will be able to use it since you need a specific game controller for it. Anyway:
I've just made an app like that and it works fine for me. Make sure you have the "Global" checkbox in Lacewing's properties checked and that the "Global identifier" is the same in both frames.
After doing some more research I have to say that reading strings from received binary is totally messed up... I'm getting lots of ASCII instead of actual characters and I'm getting different results...
I'm not sure, you'd have to ask Jamie since there's already a new version of Lacewing and the app was probably out of date.
I'm affraid I can't help with the pylacewing, I haven't used it. Try...
If you want to create your own server, especially designed for your game, you can use MMF, Python or C++ for it. But if you just need a simple server, there's already an app that you just need to run...
Check out the tutorial on Clickteam's website:
I've just found a VERY weird bug, but I'm not sure if it's Lacewing's fault. Check this out:
So, there's a problem with initializing a key in...
I suggest using the Memory Object for things like that, it works in Standard. I use it to get any data from other programs and it works great. You just need to get the memory address of the velocity...
Ah, right! It helped, thanks! :D
I'm having some problems while copying my edit data to runtime data. The problem is with accessing elements of my class in the EDITDATA.
In the EDITDATA and RUNDATA structure I've defined...
Ah, I see. From the documentation I understood that's what lParam is for:
I have a quick question:
callRunTimeFunction(rdPtr, RFUNCTION_GENERATEEVENT, CND_BLAH_BLAH, myParam);
How do I receive the myParam in the code of condition CND_BLAH_BLAH?...
Ah, I see, it works now! Thanks for the quick help :)
It's my first day of using MMF SDK :)
I'd like my extension to use external libraries. I've included the *.h file in Main.cpp, linked the *.lib file and defined its *.dll in General.cpp....
I know his server works, cause I've tested it with him. Like he said, he's the only person who can't connect to himself.
Aaaaah, now I see xD Lol, I worried and asked stupid questions for no reason...
Sorry, but now I'm TOTALLY confused, I'm probably dumb or something... XD
What if I open it? I can't save it then, cause it would result in corruption... or did I understand it wrong?
So... Is there some way to change my MFA from #19 to #20?
I thought the "earlier build" applies to #17 and older since the protocol changed after that.
I'm not sure - can I replace #19 with #20 or will that result in corruption too?
It works :)
I see that StringWithSize$ already takes the second parameter, but it still doesn't work?
I've just investigated further. I'm trying to send 3 bytes.
(I'm not able to edit my post, so I have to write a new one)
I've already mentioned a problem with StringWithSize$, but
CursorStringWithSize$("Lacewing Relay Client")
doesn't work too.
No problem :)
I've found that a client doesn't automatically leave a channel when disconnecting. Is that a bug?
Also, is there a way for the server to make a client leave a specific channel?...
I'm the one who should thank you, you're FAST! xD
New day, new questions coming xD
Everything compiles okay, but:
cout << Server.ClientCount();
gives me an 'unresolved external symbol' problem. ChannelCount() compiles fine.
Sorry for the double post, but it's a different thing now. There seems to be a bug in the Relay Client for MMF. The function "StringWithSize$" takes only one parameter - the index. Shouldn't it also...
Thanks again! :D I'm sure it's gonna be helpful, not only for me :D
I had the "unresolved external" problem and compiled the source you gave me and it compiled correctly. Do I need to use...
Wow, that's great! :D Lacewing keeps surprising me :D
And thanks for the code sample :D
Sorry for bothering, but I've got YET another question xD
Could you please give me a sample code on how to...
Really? :D Is that some class I need to use or is pinging done automatically?
Thanks for the quick reply, as always :D
I had no idea, thanks for letting me know :) You mean something like this?
void onTick (Lacewing::Timer &Timer)
//Ping all clients
I've got yet another question:
How do I start a new thread in the new Lacewing? In build #17 I had a line:
And what's the difference between...
Yellow and Cyan are hardly visible, I would suggest changing them to some darker colors like dark-green :)
Nice job, it should be a great help for people who just start using Lacewing! :)
Wow, you're fast :D Thanks :)
Yet another thing I'd like to know: What's the difference between RelayServer and Server? Seems like the RelayServer is more similar to structure in the old Lacewing....
Seems that "On channel join denied" still doesn't work. Nothing very important, but still... :P
It worked flawlessy, thanks :)
Hooray for the new release :D I've got a question though: I use Windows, do I need to compile the sources at http://lacewing-project.org/ myself or can I get the Lacewing.h and Lacewing.dll somewhere...
I've tried both ways, this and calling the file directly, it didn't change anything but...
It worked, thank you! There should at least be some info about it added in the help file for this...
I'm having some weird problem with the animated picture object. It works fine during MMF runtime, but after saving it as a stand-alone app, it simply doesn't load any images.
Hey, would it be possible to improve the Event List Editor? I mean, I'd like to be able to multiselect actions and copy them instead of doing copy/paste for each single action. I think that would...
Well, I guess the Java client could come in handy as Java applets can be run directly from the website, on mobile phones and so on. But we're talking about the server here. Tbh I've been using Java...
Hey, I don't know either it's a bug or I'm just doing it wrong, but I'm having problems with getting the Deny Status in MMF client.
In C++ I have:
Sounds like you're using your own Lacewing server. And it sounds like you were using the function Client.Send() improperly. You specify the subchannel in the first argument, not in the last one. The...
The problem was I didn't know how to do a time triggered event in C++... xD Nevermind, I've figured it out already. I've used Lacewing::Utility::StartThread to run a function that sends a message to...
I'm getting this problem, too... If client stays idle for something about 5 minutes the server doesn't trigger the disconnect handler and after that the server stops working, just nobody can join......
By "new" you mean 18 or 17?
Dynasoft, your solution works, but only if the string is the only thing I send in the stack. I need to send it along with some char and short values.
Nvm, I've already figured it out!...
Jamie, how about sending a string in a stack? I've tried this:
string s = "abc";
*(string*)Message = s;
...but the app crashes then. I've also tried:
Thanks, Jamie, now I know how it works :D I've never seen something like *(short*) (Message+1), I wouldn't figure it out by myself xD
Jamie, could you please tell me how can I send a stack message with one byte and one short in C++?
I've tried to figure it out myself, but it always seems to lost the last value. For example, if I...
Yes, Jamie has already confirmed that the "Server is hosting" condition is not working in this build and it's gonna be fixed in the next update.
Yeah, that's 20 times worse than 1ms sync xD Even frame rate independency isn't enough here.
You would have problem in playing the recorded sequence, cause it's rather not possible to get a perfectly synced sound in MMF. It would need a microsecond synch and MMF has problems with perfect...
I'm using XP and I'm having this issue... only with the Font Embed object, I've just tried Active Picture and it loads everything fine, even after deleting the original file or moving the EXE to...
Hmm, it's weird, but after building an EXE, the font changes only if the original file exists. For example:
1. I add a C:\font.ttf to my binary data.
2. Start of frame -> Extract binary file...
It would be even better if it supported MMF2 binary data, so we could embedd the fonts within the EXE instead of adding them in a separate folder. Do you think you could do it? :D
x Pow y
For example: 2 Pow 3 = 8 :)
I see, thanks! :)
When looping through the channels or clients I use the template given in the Lacewing.h:
for(int ID = Server.ChannelLoop(); ID; ID = Server.ChannelLoop(ID))
Awww... I'll try to bypass it somehow till the next update then...
Wow, finally new update :) However, I'm a bit disappointed, I've been hoping to see some new handlers in the server class like:
etc. They would...
Try something like this:
-SamplePosition("SampleName") >= 1480 - Create object...
You just need to put the sample's name as the parameter and put the position in ms.
Well, I'm not sure if it can be called a bug and I've already told you about it, but the Channel struct is missing void* Tag;
Check out the INI object tutorial by PopCorn :)
Hmm, right, you can try something like creating 2 active objects: Active(static) and Active2(Ball movement) and then:
Always -> Set X("Active") to XMouse
Set Y("Active") to YMouse
You just need to center the screen on the cursor when a button is pressed.
-Repeat while left mouse-key is pressed - Center display at X=XMouse
Save is easy, you just get the name from the editbox and you set the INI file to Apppath$+"saves\"+name+".ini".
To load you can use a TreeControl object and it will show you all files from specified...
What exactly do you mean? Can I see some example of what you're trying to do?
I guess you just need to create a graphic for the window, put an editbox object on it, some custom graphic button and...
Awww, so I'm waiting impatiently for it x3 Any idea when could we expect it?
Hmm, now I notice that the Lacewing::Server::Channel struct has only InternalTag... Is that the same thing like Tag in other structs and classes?
Ah, BTW, handlers like ChannelCreated,...
Ooops, my bad then! xD Thanks for telling me that, I'm still kinda new with C++ ^^;
Use the ID3 object :)
Uh, I don't think so... Speech recognition is very hard to do, maybe you can find some ActiveX for that, but I rather doubt it.
I have a few questions about the Lacewing library for C++. If there are some better ways to achieve any of those things I describe below, then please tell me :)
1. Would it be possible to add...
Just select Insert > Group of events from the Menu bar :)
Try negating the action "Repeat while key is pressed", that should work :) Or you can use extension like Key Object, if you need to customize it more.
I would use some Global Value to indicate the amount of players. You can put all events related to the 2nd player in a separete group and at start of frame you just check the Global Value.
I would suggest using Alterable Values for that:
-Alterable Value A of Blade = 0 - Set Blade Y position to Blade Y-1
Add 1 to Alterable Value B
Ah, okay, thanks for the quick reply ;)
Hmm, but that's in Client class. I want the server to send the message to the channel, not the client.
I see that in the Lacewing Server extension for MMF there's a function which lets you to send a message to whole channel, but I can't find it anywhere in the Lacewing.h.
How can I use it in my...
You can also try to remove the "Only one action when event loops" and do something like that:
-Hits of Chest >= 3 - Create coin at (0,0) from Chest
Set hits of Chest to 0...
Ah, right, that was so easy xD
Thank you for your help :)
I'm having some weird problems with using the pixel object along with a fast loop:
1. When pixel at 96, 0 is equal to RGB(255,0,0) => any action
...works fine, but...
1. Start of...
Well, it works fine for me too, so I would check some firewall settings on your friend's computer, but it would rather be weird if firewall blocked a thing like this.
Btw, I think you should add "On...
We need an MFA and/or PHP file you use. Otherwise we can't tell anything.
Probably you just need to use an extension like Joypad Object. If I remember good, it can detect something like 32 buttons on your gamepad.
Ah, xyzzy was faster xD
There is a part about creating platforms moving horizontally, so changing them to vertical shouldn't be hard.
Here's a great platform movement tutorial :)
Yeah, everything works fine for me too, no matter how many times I run it.
You could add each selected file to a list and then the program would be loading them one by one using the path from the list.
I'd gladly try to help, but I can't download the MFA. There's no download in the link you posted.
What do you mean by size? Are you talking about some compression?
I'm not sure if I understand, but you can easily compare strings using the "Compare two general values". You just put the strings in the "". And both of the values must be string of course.
Sorry for the offtopic, but it's just a quick question: Can I change my display name on Clickteam Forums?
Maybe try adding "Pick one of the PB" to those two conditions. If it doesn't help, then I think I'd need to see the mfa.
In both of your conditions you have:
+ Movement Value = 3
Where is this movement value stored? I think that might be the problem here, or at least it could give us some more details.
Wow, I didn't expect it SO soon xD
Works great, thank you again :)
Thank you very much, Jamie, it's gonna be very useful! :D
You need to put an extension called "Sub-Application" into for example frame 1. Then when you want to go to 2nd frame, you just load it into the Sub-Application, so you don't lose any data from the...
Oh, you're right! I think MooSock is able to do it, but I've never tried it yet. But it's a good idea, I'll have to give it a try :)
You would need to use Global Values or INI file to save everything and then load it back.
Or maybe you could use Sub-App, to play the wanted frame within the current one. You could pause the...
It won't work xD Tinyurl only creates a short link which works like a domain which later redirects you to the original link. It doesn't compress anything.
Umm... I don't think so. POST doesn't have anything to do with an extension like Lacewing, so it would be rather strange to see it there :confused:
I've never had any problems with it so far, but even if it does lock up, then I have no other choice at the moment, if I want to send data using POST.
(Yay, 200th post xD)
Ah, I see. So I guess I'm gonna stay with the Live Receiver, until you add the POST option :)
I don't really see the point of creating a table with a script. My idea would be to create that table manually (like through PHPMyAdmin) and then you would just need to send all the values of edit...
Ouch... I won't be able to help then, since I only have MMF2 Standard...
Sorry, but I don't have the DialogBox extension and I can't seem to find it anywhere. Could you please upload it along with the MFA?
It won't change anything in this case. You can't run a server application using only an FTP server, either it's MooClick or Lacewing or anything else.
I'm currently doing a lot of stuff involving PHP and MMF, so feel free to ask, if you encounter any problem, I'll try to help :)
You should check if the extensions you use in your application, are compatible with Java/Flash, cause you can later have problems with that.
If it's just an FTP server, then no. You need a dedicated server, or you can use some of the public ones.
But you can use the Get Object to connect with PHP files on your webserver and get data from...
I start getting to the conclusion that making any securities is not worth of my effort, cause there's always some way to break it... xD
Here you go :)
I think I've got confused with my own ideas, let me think it over again... XD
I've changed it again, but it seems that it's still not good... If somebody logs in, there's gonna be a record...
I've changed it a bit, adding some encryptions and expiration of the sessions, you can see it in the first post.
Good point, thank you!
I'm gonna make the sessions expire after some given time, if they're not being used :)
Hi, guys, it's me again! :)
Like maybe you remember, I'm currently designing an online multiplayer game. I'd like to post my design of the client login structure here and ask you, if you see any...
Ah, okay xD
Thanks for the help :)
What do you mean by "No and yes" then?
Is the Instance Communicator a good way to check for multiple clients of my application running on the same machine? I mean, if such a thing could be easily cheated with some memory changing...
Awesome, gonna need to check it out after it's released :)
I'm currently working on a strategic RPG which is gonna be multiplayer online game and I'm using MooClick for it.
There is a new extension called Lacewing, which I've heard has more features than...
Thanks, Jamie :) It's always nice to know something useful :)
What about MOOClick? I'm not really keen on using Lacewing, since I don't know C++ well enough to create my own server for it.
Nevermind, I've just checked it and it can tell apart players...
I've stumbled on a serious problem while designing a multiplayer online game. It isn't directly related to Clickteam products, but I hope somebody will be able to help me.
If you need to handle a lot of values, then I recommend the AssArray Object. This extension allows you to keep a lot of data with an easy access and you can make it Global, by checking an option in...
There's a "Cursor object" extension which allows you to change the shape of your mouse pointer. It even allows you to load a custom image as a shape.
I'm not sure if I understand, but maybe Anti-aliasing is what you mean? There's a checkbox that let's you to turn it on/off in the properties of String.
If I set it to Central European, polish diacritcs work perfectly.
No, I don't mean default font. I mean default SCRIPT. Like Central European, Western, Greek and so on. That's all what I mean, but what RayMarble said, also sounds very useful :)
My request applies to the comments system in MMF2. Would it be possible to choose the default script for all the new comments? It's a bit annoying to change it each time I add a comment :P
Your solution doesn't work for me, but that's not the point of this subject.
Like I said, I've already solved this problem, but I just think it would be much easier to be able to get the number of...
Yesterday I've noticed that I can create an event like:
-Number of objects("Active") in a zone (blah, blah) = x ---> ...
...but I can't do something like this:
-Some event ---> Set...
-If "Ball" leaves the bottom of the play area > Set Y("Character") to Random(Frame Height), Set Alterable Value A("Character") to 1
-Alterable Value A("Character") = 1
+Every 1 second > Add 1 to...
I didn't find a topic with my problem so here it is. I'm trying to create a music game in MMF2. I already have the very good sync using the frame rate independence, but I also need a sync...
I don't think it's a bug. By adding ".0" you decide whether you need an integer or a float type of value.
I've just found out that when I put some float number as default in the application properties, it becomes integer after running the application.
However, if I set a Global Value to a float...
It works great!! THANK YOU SO MUCH, SEELE! :D
According to your tutorial I tried something like this:
-Always -> Start loop "sync" Floor((timer-ticks)/(1000.0/Core speed)) times. & Add Floor((timer-ticks)/(1000.0/Core speed))*...
Hmm, Onu doesn't really change anything. If I play some OGG file and set an event:
-CurrentTimeMS("Onu", 0) = 496
It doesn't do anything :(
I don't think it's related to music, since I...
I searched through the forums for this and I've found a few people writing about this thing, but the problem still stays unsolved for me, so here's my question:
What can I do to get a...
I made a few online action games and I can say that you MUST use UDP for sending movement. It is unsecured and there is no guarantee you'll receive it, SO you have to send data in a continuous loop....
Well, if it's going to be used on the LAN only, then he can use the TCP :P
MOOGame is technically the same thing what MOOClick, so why not use it instead and make it work also outside the LAN? :P
I didn't mean it won't work in LAN. Sending data through UDP doesn't work outside the LAN neither. MOOClick just has a bug that disables it and since it's an action game, he has to use UDP to send...
Argh... you can't use MooClick, cause you need to send data through UDP port, since it's an action game, and MooClick doesn't support it (there's a bug which disallows you to do it).
You need to use...
I know, it's just an idea :) Clickteam has a lot of work with HWA, because they said it'll be in December, but they didn't tell which year xDDD Heh, just joking xD I know there's a lot of work with...
I see you didn't read my whole post :/ I wrote that I know many ways to do that, but it would be just more convenient if we could define local values as we do it with Global Values.
In MMF we already have Global Values, but I think it would be cool if we'll have something like Local Values :P It would be the same thing like Global Values, but they could be definied for...
I think it's a very good idea :)
Thanks, Jeff :D No problem :) I don't mind anything ;)
I just made one sometime ago. I hope it'll help you :)
I am using AMD Sempron. You can send that application to me, and I'll tell you if I also have this slowdown.
You can change Joypad input by pressing CTRL+Y during the runtime, or through the Player object in the event editor.
I'm not sure, if I understand you, but you can make your menu in the application properties on the "Window" tap. There is an "Edit" button, which allows you to change all of the standard options in...
I also have Vista and the samples are playing at every collision (with the wall, or with the bats).
No problem :) But you should also wait for other users response, because there may be some easier way to do it :) Also, if I figure something out, I will tell you about it ;)
As far as I know, you can set area dimensions in the Screen Capture Object.
You can use Screen Capture object to make screenshots of some areas, save them and load into new Actives.
But I think that there is some better way to do it.
Hmm... it's a good idea :) Maybe it could be even added too the next build, if it's not to much work :D
Yay! Finally! :D Thanks a lot! :D
I made an example how to create a simple online game using MOOGame. I hope it'll help you :)
I don't see any problem in making online game. I am making one right now using MOOGame and everything works perfectly. MOOGame doesn't have any bugs, except for Dead Reckoning which is not working...
MooClick is not good for online games, because it has a bug in sending UDP packets, which are necessary if you are going to make some action game, where you need synch. MOOGame has this option, so I...
In other words, you are trying to do a mask. I think you'll have to use some extension, or you can just add that line to that windows.
I would recommend you site www.modules.pl :) You can find a lot of MOD music there and use it in your MMF2 applications :)
Works perfectly for me. I have no idea what could be a reason of that bug on your machine :/
Flame object will be perfect for it, but it's taking a lot of memory in MMF2 applications :/ After release of HWA, it'll be much better :)
Well, I can't do much more without looking at the source :( If you want to, you can send me your MFA file and I'll try to tell you what's wrong.
It seems that you didn't add "\" after "Gamedata".
UDP works perfectly in MOOGame. I am now making an action online game and I'm using MOOGame to it.
My advice is to use MooGame, instead of MooClick, because MooClick has a very serious bug, that disable sending data on UDP channels. If you're making some action game, where you need a real good...
If your MFA, or EXE file is in the C:\Program Files\Game Title, then you don't have to add "Game Title\". It'll be specified by Apppath$.
In that way you made it, it would save INIs to folder ...
Set current file to
Apppath$+"your_folder\"+text from Edit Object
Apppath$ takes a full path to your game. Then you can add folder, which in you want to save your files and finally add the...
I always use Tree Control Object to display all of the INI files in the folder. Then player can choose a file, which he wants to load.
I finally got a way to reproduce the bug, which always select top condition in the event editor.
Make event with 2 or more conditions. Then change the order of them and click the save...
It's possible, but you'll have to save the scores manually to INI files. Then you'll need only one Hi-Score object, and load hiscores to it, from INI files (Insert hiscore - "name1"("INI"),...
Great extension! :D Maybe next you could make EyeToy controller? :D
Wow, fast reply xD Sorry, I didn't know what means "Force Feedback" xD
I noticed, that Joypad object doesn't allow to use vibrations in Joypads. I hope, we'll have extension with that function soon :)
I reported it a looooong time ago and I didn't get any answer about fixing it :/ But we should wait till HWA will be finished :D I hope then Clickteam will start fixing all of our reported bugs :)
I think that you can send only Alterable Values A,B and C.
Nope, it's not what we are talking about.
I thought there is one Event Editor xDDDDDDDD
I reported it a long time ago, but I didn't get any answer...
You can go to next frame, and back to previous. Then it works fine.
Don't use HWA, because it's only Beta and it's full of bugs :D Report this in the HWA topic, and till the final version of HWA, I recommend using "normal" MMF2 :)
You can use the Particle Spray Object :)
Just one moment ago, I had a very strange bug in MMF2 (without HWA).
I added a new Active to a frame and setup transition to Fade In. Next I added an action to destroy other objects, and create...
I tried to, but now I'm on XP and I can't reproduce it. I will try it in the Monday.
I had this bug with Particle Spray object on Windows Vista. On Windows XP everything seems to be ok.
The Crash while opening the frame through Storyboard is also only on Windows Vista.
I know there is "Use a calculation" button, but if I enter there a number, and run my application, animation doesn't change... And I think it's a little bug :P
I noticed that I can't change animation sequence using the calculation. Could you fix it? It's important for me.