Just out of curiosity, how does object selection works in Edif? If is declare condition in json with parameter "Object" how do I have to declare function in Edif? From experience in rSDK param object...
Type: Posts; User: Algul; Keyword(s):
Just out of curiosity, how does object selection works in Edif? If is declare condition in json with parameter "Object" how do I have to declare function in Edif? From experience in rSDK param object...
I agree that it would be better to do actions on all object right away, and I agree that it's design flaw, but I do not think it's a bug. There are other design flaws in MMF that does not make sense...
edit: misread that, sry
workaround, don't start fast loop in events that do something for multiple objects(positioning, setting values,...), triggered event will mess up selection list
it does follow order of actions, it goes from top to bottom doing one object at a time, first time it will do all 3 action, second time it will do only actions for active because there are more then...
sry but that's not a bug. Come on, action loops in MMF are unchanged as long as I know. Disasembly of that example looks like this:
set global value to 10
set active1 altvalueA to globalvalue(10)...
Well I have been quite busy in the past few weeks and Skyrim does not help(and it will probably take me a month to finish it). I don't want to postpone release of the updated version that long so...
I'm not sure what are you trying to do but to round value up or down to the closest desirable value -> something like this should work: round(x"detector"+12.5)/25*25
Under application properties look at "Image Filters" and uncheck "automatic". That should do the trick.
Well I played with it a little, hope it's what you are looking for.
It should just drop concave mesh on the ground. So as long as it falls down and roll as expected and does not crash then it's working ok. Problem is that it crash for me in the new version and I was...
I didn't examine that file to much but I think that the problem is as follow
+ Repeat While Moving Right
+ CeilingDetector is overlapping Obstacle <-A
+ FloorDetector is...
So next version is almost ready for release, but I would like some feedback on current version. Specifically: does example 02-GImp work for everyone?
So what you want is to project MousePoint onto Line? Like this? View MFA
That example is simplified but you can google proper math to do this with keyword dotproduct. I'm not confident enough to try...
Actually the "Correct way" is incorrect. Compare 2 general values condition does not change object selection so you may as well replace it with "always" condition. The fact that it will position...
Are there any news about issue with PS_3 not working? I just tested some of my old ps3 shaders and none of them are working:(
ops never mind, wrong idea.
found it: http://community.clickteam.com/showthread.php?t=50570
I'm pretty sure it's the same issue, links for example file does not seem to be working tho.
I would say that your understanding of loops is fine. Action loops are not related to "fast loops".
If I didn't explained something properly or if something is unclear, let me know.
That's interesting. I can't reproduce it. My 40x25x5 array of string, each 32charactes is 181kB. Can you upload example? I would like to take a look.
that's how "action" loops work. Actions that affect more then one object are not executed immediately on all of them but one by one in "action" loop.
"obj" is visible
well I made extension long time ago that could do that, but I only showed it to few ppl on gwerdy chat. It became obsolete by release of ForEach extension that could store and restore selection as...
check hot-spot of crouching animation images, hot-spots need to be at the same position as other images
things I noticed and changed:
backdrops were set to "platform" not "obstacle"
actual player was set as object for platform extension...that is bad as...
I should probably clarify.
This extension does not draw into OpenGL but into standart MMF surface. OpenGL version can be found here
Bitmap fonts can be generated by this or you can draw font...
limited port of opengl bitmap font for standard mmf. Does not work in HWA and does not support font scaling and coloring.
edit: new link, added...
First bug, well that didn't take long:(, conditions on collision start/end and body touching body/type were triggered based on objects bounding box collisions and not their actual geometry. It's now...
There is no texture support in DebugDrawer and I don't plan on adding it, it's rly just for quick simulation testing. It's the same with DebugDrawer's internal camera, it's there just for convenience...
Early beta version of 3D physics extension using Bullet physics library. Technically it has nothing to do with OpenGL but using it anywhere outside 3D is pointless(Box2D and Chipmunk covers 2D...
that would only work if he would wants to retrieve values in order 1,2,3,... or similar, if for example he wants to retrieve numbers in order 2,4,5,1 using loopindex wont help.
that's the only correct way. Just because you need it to detect just top most in this case, does not mean you will always want it. If by default "on click" condition would process just top most obj...
two different ways to safely do stuff for only topmost clicked object.
no it does not pick topmost by default, it pick them one by one from back to front, so the last one picked should be top most. But I don't know how safe it is to assume that this will always be the...
you don't have to go that far, if you really need to do some stuff only for the top most obj from multiple stacked objects then simplest solution is probably View MFA
main issue with "on click"...
that depends on many things, are objA and objB always the same? is it possible to click on more then 2 stacked objects? can order of objects change during runtime?
simple solution would be restrict...
What do you mean? check View MFA if you click on objB at point that is overlapping objA it will run both actions and that is correct.
like this? View MFA
fastest is probably with select object extension.
i did included example.
Well this is perfect example for ForEach extension. In cases like this, every object needs to be handled individually.
I need some help from someone familiar with unicode mmf. I made bitmap font extension for opengl, and it crash in unicode version. It's made in edif and I recompiled it with the newest source. It...
If I understand your proposed extension correctly, it should be focused on the actual visual display of item table. My extension focuses on internal inventory management, like stacking....
extension that should help managing minecraft/mmo style inventory( 1 item = 1 slot ). I think there was extension like this before, but I couldn't find it. If there is another extension then please...
Here is Beta version of an extension for drawing 2D text in OpenGL using bitmap fonts.
Bitmap fonts used in this extension are generated with AngelCode's bitmap font generator here
This is a BETA version of my 3D Sprites extension that is little more advanced then the original. It's based on source from the original extension, but it's heavily modified. Therefor, what was...
try this http://rapidshare.com/files/340739619/opengl_md2.zip
if it still crash, please try to delete actions one at a time and tell me which action causes the crash.
and the first example...
I just browsed through the documentation of Assimp and it seem pretty heavy. As far i can tell it only convert different file format into one unified structure. This can be helpful with some advanced...
better OpenGL Base integration
some basic render modes
can hold multiple models
don't release allocated...
Anything I can help with?
Oh, I was just testing how many models can I render before any FPS drop and I didn't change it back.My bad.
He did? Well I didn't know that. I would gladly leave...
No, its not part of OpenGL set. I created it mostly for my own personal use before Min's version will be available(and to train extension making as i'm still learning it).
It should not matter which...
Extension to load and render md2 models.
This is a test version. It can only hold one model.
Currently I need to figure out, how to render multiple instances of the same model. Obviously you would...
If you set "temp" to 0 before running the loop as LB pointed out then it should work. Here I tested it View MFA
Have a temp value and in loop add 1 every time the enemy have that state.
on loop "enemyState"
+ID = loopindex
+state = state_to_test
-add 1 to "temp"
then test if "temp" = enemy count.
Don't spread values on the same line with fastloop.
Try changing events that tests if health of enemy is equal to 0 for testing if it is lower or equal 0.
Open "fmod" in external C module fmod.dll
Removed dependency issue.
Simple extension that can return state of any key in expression. I don't know if this is already possible with any other extension. As far as I know Key, Keyboard or ControlX can only test for key...
No sorry but that is not it either.
Maybe i didn't explained it enough.
Here is another example.
Problem cant be order of events. There are only 2.
And here is result after one...
No it is not.
The problem is not the ink effect but that wrong actives have it. XOR effect should be on actives that overlaps the gear. On the picture you can clearly see that they are not even...
here is pic of how it look on my computer when the angle become 0
When an active object rotate and its angle become 0(CW or CCW) overlap condition test will become weird. It looks like that the rotating active change hotspot to top/left corner for a moment.
If you have issues with this object, and if you think they are bugs, then you should post them here so Min can look into it and fix them. If noone post any bug reports, then they will not magically...
If anyone is interested i found this great IDE for coding lua scripts - QDE. It is not free, but it is not too expensive. You can try it by downloading trial version here...
I made quick example to test stencil buffer and it runs great. But in doing so i discovered something i don't fully understand.
Try the first frame and you should see artifacts on the...
No matter what i input i get always the same result, 64,16,16,16,16.
No visible artifacts in small window, but they appear when i resize it.
DSP and Reverb are definitely on my "todo" list. But first i need to make sure that current version is working fine.
Also i was thinking about making it more object oriented. But that may be just...
Very basic FMOD library for xlua. Only few fmod commands have been implemented(list in txt). Basically i was just looking for an easy way to play sounds directly in xlua. Any feedback(positive or...
Now you draw your tiles over each other. Translate(renderx, rendery,-50) is moving origin by 1 and you draw tiles 32x32.
Why dont you explain what exactly do you want to make. Or pm me your icq# if...
That is because you draw you water closer to camera. Your water have z of -66 while your terrain is about -1600(scale 32* translate -50)
3rd set of problems? Can you be more specific please?
Here are my observations, hope it will help:
1) that green thing(grass) have hot spot in the middle=>Build TM loop will not register them.
2) line 11, setting color to blue and alpfa to 128 will...
Hi all, i made small extension for xlua that include few glu functions. Unfortunately i didnt find any existing lua library for it, that i could compile, so i had to code it myself. So bugs are to be...
yep, that fixed it. Thanks.
I will test it some more before reuploading.
Ups,you are right. I tested it on my laptop and it gives me same error. LuaZip also give me this error. It seems to be problem with dll dependency. I will try to fix that.
I compiled another library. This one is for packing and unpacking binary data. I tested it on md2 and TGA headers and it also seems to be working.
All info at http://www.keplerproject.org/luazip/
Also if anyone is interested. I compiled luazip extension for use with xlua and it seems to be working.
Well, there must be something we can do to make this happen. I guess we can try major and I mean _major_ leaflet campaign. Maybe followed by a whist drive, a car boot sale, some street theatre and...
If XLua is no longer beta then it would be nice if XLua has its own forum, like dotNet. Something where people may post code snippets, examples or ask for help.
Thanks! Great extension.
BTW I'm curious, is XLua still in beta?
I found this topic while searching for answer for this exact problem i have with Background Images object. I know that this is almost 1year old topic, but is there any solution? I didnt find anything...
Move overlay to solo layer with 0/0 scrolling coeff and set its position to 0-X Left Frame. That should fix it.
That is strange. I thought that looking around was the one thing that was working without any problems. But i tested it only on NV cards.
And i unchecked 'Display above frame' intentionally. Leaving...
This is something I have been working on for a few days, but i lost interest in it. I have made some poor choices from beginning and it would be too hard to work around them now. It was supposed to...
That makes sense. Thanks.
Also I dont know what i was doing downloading that new distribution. My bad. :blush:
And thanks for that microclock. That will be handy.
Is the distribution on usual place? os.microclock is giving me error (a nil value)
And to elaborate what i meant by "didnt understand"
I tested this functions
Sin1(a) return math.sin(a)
I see. I was just concern how reliable this approach is, because i'm getting results that i don't fully understand.
Is there some way to determine how long it takes to execute some function? os.clock is not very precise so i have to call that function several million times to actualy measure something. Is this the...
Thanks! It works perfectly now.
Would anyone be willing to help me with one pixelshader? I'm trying to make normalmapping shader but it does not work very well. I dont know if its because of bad light vector or something inside...
I made tower defence example while back(it is posted in this forum somewhere) that do just that.
Pseudo code looked like this:
-clear towers values(selected target)
hm, yes that is probably best. In this case i would need more than just action point location. I would also need vector for shooting bullets in the right direction. I guess there is no "simple"...
i use exactly the same formula for other things.
Problem with this type of action point is that its constant. It does not change with animation. And that is actualy what i want. For every animation...
I'm prety sure that this must have been ask before but i can't find anything about it. I'm looking for a way to create more action points for active. Like if i have character that hold pistol. I want...
Not sure if I understand this correctly. What is your goal with this? Do you want to make sure that after one music is finished, then the next music will be chosen randomly but it also must be...
Any news on this project? Does anyone have some examples on what this extension can do or what is capable of? I'm really interested in this extension and looking forward to it.
Unchecking "display as background" for those strings seem to help.
BTW nice looking game. I loved chuckie egg on ZX Spectrum.
How does expression:Conversion:On-screen to 3D work? Does it work like gluUnProject? If so then im not using it right, because im not getting world coordinates that i would like.
I would probably go with opengl and draw guads.
Can you post example data for that array? I would like to try this. I could use some 3d functions(like http://www.benjoffe.com/code/tools/functions3d/examples), but that would probably not be much...
I can confirm that there is something fishy about this. There is also something i noticed that you may already know, original movement you have there works fine if those falling actives dont overlap...
I am now actualy trying to bypass overlay entirely and use opengl for drawing instead. Currently it is not much faster. But i hope that when i figure out how to use pixel buffer object and...
So i reinstaled to winxp and this problem still remains. It is not so noticable but it is there.
I try to install MMF b239 that come on CD on clean winxp and object that is suposed to be positioned...
Disabling aero helps but it is still not perfect. And without any theme windows does not look so good :(
I have b249.
And yes i tested it on both systems. In Win7 object is lagging behind mouse. In XP everything is ok.
And test application have only 1 event. Same event i mentioned in first post and...
I have strange problem. I try to make active to follow mouse position by simple
active:set x position to mousex
active:set y position to mousey
but that object is realy lagging behind...
My another try to make something dynamic with overlay redux. This time i used xlua for calculations and result is much better(18fps with xlua over 4-5fps when i try this completly in mmf)
Dont start detection loop for obstacles on same frame that create them. They dont exit until end of frame.
Good to know. Anyway i agree with Pkeod on this. That reason to have limits on backdrops created on runtime must be a really good one.
But this rule does not seem to be affecting layer 1.
If "maximum number of objects" is "runtime options:number of objects" and not some hardcoded limit in mmf.
In this example "runtime...
I can confirm this only if number of layers>1
Only with "Expressions: Call With Existing Parameters"
No inline parameters in expressions afaik.
That is weird. Set Y position seems to actually set X position.
No it does not. Death is activated when player overlaps group bad.
Anyway i dont see how dynamite death work. It work the same as if you hit instant death object. Only differene is that if you stand...
Edit:MFA Repository link doesn't seem to work, use rapidshare plz.
Edit2: Reuploaded correctly to MFA Repository.
But it would be even better if you could set grid size to whatever is needed.
Nice example, I somehow missed it.
Ok, i will try BGI.
What is best way to do animated tiled backgroud.
Lets say that i want to make game like Tyrian or any other scrolling topdown shooter. And when i fly above water i want it to be animated. With...
Well my idea was simple. When bullet hit alien then it should explode and slowly disaper. So i create disapearing animation and set active to fade out.
+Bullet collides enemy
I change movement because i dont want explosion to move from where it was created. It have fade out transition co it would move with other aliens for a while. Anyway if that is the case i will create...
I'm having problem with this little game and it drives me crazy. Game crash when i try to shoot, but not every time. It is almost random, sometimes it does not crash entire level and sometimes it...
Code is free for everyone to use. Graphic is not my as i said.
Yeh, there is only 7 waves defined and then it loops last one. And i didnt tweak units values so its unbalanced. This was intended only as prototype for bigger game.
Hmm strange, i cant seem to find it. it's not on FusionUpdater or ExtensionView.
Anyway here is version without it. It actually have no function other then visual.
This is example of tower defence i have been working on. But animating those little soldiers is above my pixelart skill so i no longer work on it.
Active system box
So you need to test if specific pixel is in defined zone. Like "Is pixel 0,0,0 present in zone 550,460,650,460". If so then you will probably need to loop through all pixels one by one.
I have strange problem with spread value that i cant replicate in new applicationc. It only affect my current work. So i cant post file.
If i spread value directly on active ( like active 1:spread...
Try reading this http://herbert.gandraxa.com/herbert/imp.asp
Make separate collision box and then position your character to it.
I played with this a little. Result here.
When i click on that thing it switch frame to some kind of hacking minigame for me.
Lua reads large files great. I tested this function on 4.5MB text file with 18k lines and it was instant.
local lineread = 1
They can be all strings, Lua would convert it to number if needed inside.
Would it be possible to add action Call Lua Function with one/two/three/four parameter/s? Allmost every function i have use 1-2 parameters and this would save some "push parameter" actions.
That is exactly what i did:) Only problem is that my file type is about 3times larger than source obj file. But i have some ideas how to shrink it a little.
Works "fine" for me. Only thing i dont understand is that "Push Floating Paramter" seem to push only integer.
3DS like http://www.the-labs.com/Blender/3DS-details.html
Hmm... i dont think i can make some kind of importer in MMF for this:) I will stick with OBJ for now.
Not rly OpenGL question but can anyone recommend me good 3d file format? I am looking for something similar to OBJ but with texture info inside(not in separate mtl file like OBJ).
Did you fixed it and removed that file?Because i get "The key you provided for file download was invalid. This is usually caused because the file is no longer stored on Mediafire. This occurs when...
Great work Looki.
One problem though, i can no longer access textures from xlua. Its probably xlua issue with its ext.opengl.GetTexture function. I have allready overwritten previous version of...
Is it possible to pass generic vertex attributes to shader?
Here it is
Thanks for working on this. I really appreciate it. I didn't get stencil buffer to work though.
Can anyone take a look at this and confirm that it is my fault plz?...
Getting 50/60 FPS.
Looks great but sometimes it also feels like lagging. Can't explain it though. Just a feeling.
Thanks for this quick update.
May i ask how to setup direction and cutoff for lights other then 0?
But how will it deal with something like
String set color Yellow
AFAIK its not possible to have different graphic for one active. Just like you cant change color of just one active. It will always affect all.
I would really like to see some shaderes that can create pseudo random patterns. Like "Perlin Noise".
Or even better some kind of caustic. Like http://www.dualheights.se/caustics/
Not sure if they...
After some testing it seems that this dont work on Vista either:(
This version doesnt work for me. It seems that "Selection changed" condition is not trigered if its done by program and not manually by user. If i change that then it work fine except that it repeats...
Aim can get off=bullets dont pass through crosshair? If so then its because MMF use 32 directions and you need 360.
There is nice widget you can use for that...
Im not sure what can be wrong. Please post new mfa so i can look inside.
Strange, i dont know what is wrong. Try this exe files if they work(strange but it seems that it is not possible to change palette in exe)
Thx all for comments but this is as far as i can get it. I can't find any solution to bluring when zooming. I hoped for "infinite" zoom so much:(
To Atom: Any new form of fractal i have not seen...
Sorry to hear that Novabrain, but that shader wont compile with 2.0 profile. And i cant reproduce that error you mentioned. What version of HWA do you have? I have 249 beta3. Not beta3b.
HWA Test. Require PS3.0. Since im new to pixelshaders i would like to ask someone if its possible to add palette and how do i eliminate blurring when zooming.
Edit: Forget about the palette. I...
I made this just for fun. Not commented and very slow. Realtime zooming is not possible with this approach:(
I will try to make it with pixelshaders next time.
Key simulation seem to be working fine to me.
Edit: Maybe the problem is in multiple keys pressed at one time? Like up+right? If you want just one key presed at time then you need to change code...
Use "Advanced Direction object" and set angle of active to "Direction between two points".
To make active stick to ground is actually pretty simple. You just have to generate collision mask. In this case, where you can have only one height of ground(not like in worms where you have...
they are not the same, first check every pixel and then move it, second check one pixel and then move whole column above it. It should have been faster but i didnt notice any improvement.
I was playing with overlay redux today hoping to create Scorched Earth like terrain destruction with decent speed.
Something faster than this old example...
I would use Vector Movement for bullet.
I made quick example of that.
You can run notepad.exe with command line parameter pointing to file you want to open.
I dont understand exactly your problem. But Overlay Redux is not set to Transparent drawing mode until you press Up. By default its in Opaque mode.
check debugger if Spread Value actualy do something in your case
Function Eggtimer may do the trick
if so then here is example how i would probably do it
You mean like in this game?
somehow it works
basically it pairs childs(active 2) with parent(active 1) and then sets childs position to its parents+offset
yeh I did had a feeling that i read it somewhere already. But i already forgot it.
I have small problem with conditions and "create at start" option/non existing active. Condition is:
+ Object is overlapping backdrop
+ (X) Object is overlapping Active 1
- do something
Also it seems that every "zone setup" in 200% is buged.
Try draging zone outline to resize it. It will do crazy stuff.
here i captured it on video
1)yes it will become correct(i did it until now]
2]yes build 248
i forget to tell that this only happen in 200% zoom
Yes "The mouse and the keyboard"
i noticed it just recently
But now even if i start new blank project with just this one event, zone is always 1pix off from what i defined.
When i define zone for mouse click with
+User click with left button within zone
i set coordinate to something like 100,100-200,200 then i click OK and in event editor it shows 100,101-200,201
That white border around unit may be alpha channel which mess up overlay mask.
I am not sure what do you mean. But I'm interested. Please post an example.
I was unable to separate different masks for each bodypart so colorizer work only for whole body.
I tried that with fast loops. No change.
yes, using overlay to load different mask for animation was something i had in mind. But first i need to make some animation :)
I will try my best but no promises.
()+360) mod 360 is not my idea really
i took it from Werbad's post in another thread.
Colorizer object seems to work fine with actives.
So what you want may be possible. This is interesting problem.
I will try to look into this...
i dont think its unrelated.
as i said problem is most likely collision detection. If u change "overlap" condition to "collision" condition then it will destroy that red box properly. But i have no...
Too complex question for me, my MMF skill and my english.
But i suggest looking into Knytt source.
Great place for getting ideas.
For this particular...
after first look i realized that it has something to do with collision. So i get rid of them.
I am really sorry but i still can't replicate that.
make sure that you destroy right object after it is pasted into background.
505pixels means 505 objects created=possible max objects
I cant replicate this. Just now i was holding left mouse for about 5 minutes and it was working fine.
Please give me more details. How long did it work, how big is that object you are pasting,how...
sorry but i dont follow now. Can you send example?
after few tries i managed to make triggers follow badguys properly but other issues are above my skillz. It seem that changing overlap to collision fix some problems(couter will always pick...
Something like this?
ATan2(Y1-Y2,X2-X1) will give you N:90░ E:0░ S:-90░ w:180░
Try Xmouse/32.0*32 and it will not snap.
215/32 = 6
215/32.0 = 6.71875
added second frame
Edit: wrong link, this one should work