O, sorry misunderstood what you needed. I don't think I have ever seen adjustinputs work correctly. Every time I have come across it there has been some kind of error.
Thanks LightDemon666, but that doesn't really solve the problem.
When you're making a new SENT, that works, as it sets up the wire inputs, but if you're calling "Wire_CreateInputs" on an already created SENT, it resets the wiring, and recreates the inputs, detaching it from the rest of your contraption.
The "Wire_AdjustInputs" function in wirelib should do it, but it always fails due to not being able to reference the current inputs :/
O, sorry misunderstood what you needed. I don't think I have ever seen adjustinputs work correctly. Every time I have come across it there has been some kind of error.
Ergh... This kind of error has been plaguing me since I started this...
"attempt to perform arithmetic on local 'flags' (a nil value)"
Its invariably when a client-side function calls a server-side function, because the variable is local-scope and the function cant read it... which is annoying, but weird, 'cos the other parameters to the function work fine...
Rarggh!
*Tears fur out in frustration*
-=Double Post For Update=-
The problem I detailed above is still there, HOWEVER I have a workaround for now - just set the settings on the tool to whatever you want, then spawn one and hit it again to update, and the correct settings will be applied.
Hopefully I can fix this soon, but until I do, just remember to double-click the SENT on creation :P
Either way, new SVN update, and .RAR update!
-=Update Rev 5=-
- Inputs now only show when they're needed (no end inputs for point elements, etc.)
- Line and Box modes for XY->XY type indicators.
- "Use World Coordinates" now works as expected, turning on 3d input mode.
- World Coordinates now applies to XY->XY indicators, (XYZ-XYZ mode?)
- End coordinates now become 3D inputs when in world coordinate mode.
As for Urablahblah's question a while ago... How's this for ya?
Locator -> Locator lines*Grins inanely*
Just check the 'Use World Coordinates' box and use an XY-XY indicator!
Last edited by moggie100; 09-23-2008 at 10:31 AM.
This is damn awesome, I can't believe it wasn't thought of or done earlier.
Good job moggie!
Been using this alot on my contraptions.
[FONT="Trebuchet MS"][B][COLOR="SandyBrown"][B]Bored?
[URL="http://forums.facepunchstudios.com/showthread.php?t=599623"]Read a Story[/URL]
A Few Contraptions Worth Mentioning
[URL="http://forums.facepunchstudios.com/showthread.php?t=519210"]C&C3 Orca[/URL]
[URL="http://forums.facepunchstudios.com/showthread.php?t=519528"]C&C3 Firehawk[/URL]
[URL="http://forums.facepunchstudios.com/showthread.php?t=606992"]Stryker APC- Unfinished[/URL]
[IMG]http://img158.imageshack.us/img158/4281/spiky1je3.jpg[/IMG][/COLOR]
[COLOR="DeepSkyBlue"][I]Enjoi[/B][/I][/COLOR][/B][/FONT]
Thanks! Its nice to hear that people are using this
-=SVN Update=-
Various hotfixes applied, now at revision 7.
Advanced duplication is partially supported, I'll work on that next when I get some time, but I'll be 'out of the office' - so to speak - for the next couple of days, as I'm off to meet people at IBM (whoo!)
If anyone has a contraption that makes good use of these please post it here! I'd like to see what people are doing with this so I can better tailor it to what people want.
So the first three screenshots are what I made with the new indicator functionality, first is a box with adjustable X, Y, Z, width, and height (and in the future Rot_XYZ). Pretty simple but fun none the less.
The second one was trying to figure out a good way to use the indicator scaling. Right there the equation used was Size=Min(50000/distance, 50) so that if its closer than 1000 units it will only get to be 50pix wide.
The last three are trying to figure out how the heck the XYZ to XYZ box works, I couldn't make sense of it for the life of me. How exactly does it evaluate moggie?
Regardless of the box freaking out, This thing is great! I love it and it has so many uses! Keep up the good work!
Gold stars for you!![]()
Err... Y'know, even I'm not sure how that works :P
It should just take both sets of coordinates in XYZ form, transform them to screenspace XY coordinates, then draw the box from top-left to bottom-right
Although that may go crazy if you use coordinates that are the wrong way round :P (drawing it backwards)
I'll poke that in a bit...
Bookmarks