I have here some Game code. Its to auto delete what I get. But I get always 3 but the Script only delete one. How I could change it? Thanks!
local DeletePet = function(PetID)
game["Workspace"]["__REMOTES"]["Game"]["Inventory"]:InvokeServer("Delete", PetID)
end
Jerome, could you please post where you're setting up the OnServerInvoke event? I don't see it in the code you're referencing to Csaar. I'm also afraid I don't quite understand what you're meaning when you ask how to delete more then 1 from the result. If you could clarify a bit further upon this, then I might be able to further assist you.
Also, please keep in mind that Roblox code is rather niche and you'll have a higher chance of getting answers in a Roblox oriented environment like the recommended Scripting Helpers forum. That's not to say the people here aren't very skilled, but they may not be accustomed to the Roblox API.
Related
As part of the new updates, Roblox has decided to remove the Velocity component. Anyone know any work-arounds?
Sorry if this response is late, however I guess it's not too late to answer, since nobody has.
A roblox staff member has confirmed that a solution to replacing the Velocity component is .GetVelocityByPosition(), however you probably want to use .AssemblyLinearVelocity() or .AssemblyAngularVelocity(), all of this really depends on the context you are using it.
I also want to clarify, depreciation does not mean you can't use it anymore, it usually means that you are better off not using it, however, just go by the solution, it's better that way if you do.
I'm trying to make vertical karaoke kanji with furigana in Aegisub which uses lua script. I didn't write the code as I state here, I'm not advanced enough to write codes yet, but I can edit the effects at least. - http://forum.aegisub.org/viewtopic.php?f=5&t=66245&p=90280#p90280
My file and other needed info regarding my topic can be found there as well.
I'm very confused at the moment as I can't figure out how to make the code so that the subtitles don't spin and keep their current effect... Also, the code that the person gave me, doesn't work. Any help is appreciated. Thank you!
I've programmed 2 rails apps so far that have definitely gotten me pretty comfortable with ruby + rails. I can't say the same about C though. I don't even know what I'm looking at to be honest any time I look at C. It looks like macaroni.
I'm trying to build a spotify web app. The web API sucks, so I have to use this: https://developer.spotify.com/technologies/libspotify/
Documentation: https://developer.spotify.com/technologies/libspotify/docs/12.1.45/
Someone told me I can look at SWIG as a wrapper to communicate with rails.
The data I'm trying to get is 3 things: Number of subscribers, playlist thumbnail, number of tracks... given a playlist URL in the format of: http://open.spotify.com/user/{{username}}/playlist/{{playlist_id}}
To be honest, I have no idea where to even start. I can't find any swig tutorials online, and staring at this documentation isn't helping.
Could someone maybe give me a very brief 1,2,3 step procedure that one might go through to do something like this? I don't really expect any code.. but.. this is very roughly what I understand so far.. perhaps someone could help me fill this in..
save all C files you need to rails lib directory
compile files with ... ?
use swig somehow
:|
Any help would be super appreciated. I realize this is vague and 'subjective' but I don't even know how to ask this objectively. Just a quick 1-2-3-4-5 to get me started so I can do some googling would be fantastic.
Edit: I did find this, but this seems to be much obsolete: https://github.com/sarnesjo/greenstripes
Well, this is certainly not the answer but just thought to gather some related links here.
http://www.eqqon.com/index.php/Ruby_C_Extension_API_Documentation_(Ruby_1.8)
http://java.ociweb.com/mark/programming/Ruby_C_Extensions.pdf
http://people.apache.org/~rooneg/talks/ruby-extensions/ruby-extensions.html
Let us know about any update.
After some digging I have found this. I think this is the answer for my ruby libspotify wrapper: https://github.com/Burgestrand/Hallon
I'm looking at the excellent dwscript for Delphi see here which provides a useful set of classes to implement a built in pascal script for your Application. I would very much appreciate some help with an example of how to link together the supplied debugging interface with an editor so that I can create breakpoints (and ideally see watches). Has anyone gone along this route please?
Thanks,
Brian
Most of the debugger doc is currently in this post
http://delphitools.info/2010/12/03/spotlight-on-dwss-idebugger/
Also the debugger interface hasn't changed much (if at all) since the original DWScript II (on SourceForge), so the old demos there should hopefully still work with minimal adjustments.
http://sourceforge.net/projects/dws/
For breakpoints, you basically just check the source position of the Expr you get in DoDebug/OnDebug against the list of breakpoints. One simple and efficient way is to merely use TBits -using it as a boolean array of which lines have a breakpoint).
Evaluating/watching requires looking up a symbol, which will give you it's stack address, you can then lookup the value in the stack.
I'll try to add/update a debugging tasks demo for v2.2 (unless someone else does it before me ;) )
edit: as of 11-02-14 there is a TdwsDebugger component to facilitate debugging tasks.
What's the best way to set up help (specifically HTML Help) for a Delphi application? I can see several options, all of which has disadvantages. Specifically:
I could set HelpContext in the forms designer wherever appropriate, but then I'm stuck having to track numbers instead of symbolic constants.
I could set HelpContext programmatically. Then I can use symbolic constants, but I'd have more code to keep up with, and I couldn't easily check the text DFMs to see which forms still need help.
I could set HelpKeyword, but since that does a keyword lookup (like Application.HelpKeyword) rather than a topic jump (like Application.HelpJump), I'd have to make sure that each of my help pages has a unique, non-changing, top-level keyword; this seems like extra work. (And there are HelpKeyword-related VCL bugs like this and this.)
I could set HelpKeyword, set an Application.OnHelp handler to convert HelpKeyword requests to HelpJump requests so that I can assign help by topic ID instead of keyword lookup, and add code such as my own help viewer (based on HelpScribble's code) that fixes the VCL bugs and lets HelpJump work with anchors. By this point, though, I feel like I'm working against the VCL rather than with it.
Which approach did you choose for your app?
When I first started researching how to do this several years ago, I first got the "All About help files in Borland Delphi" tutorial from: http://www.ec-software.com/support_tutorials.html
In that document, the section "Preparing a help file for context sensitive help" (which in my version of the document starts on page 28). It describes a nice numbering scheme you can use to organize your numbers into sections, e.g. Starting with 100000 for your main form and continuing with 101000 or 110000 for each secondary form, etc.
But then I wanted to use descriptive string IDs instead of numbers for my Help topics. I started using THelpRouter, which is part of EC Software's free Help Suite at: http://www.ec-software.com/downloads_delphi.html
But then I settled on a Help tool that supported string ID's directly for topics (I use Dr. Explain: http://www.drexplain.com/) so now I simply use HelpJump, e.g.:
Application.HelpJump('UGQuickStart');
I hope that helps.
We use symbolic constants. Yes, it is a bit more work, but it pays off. Especially because some of our dialogs are dynamically built and sometimes require different help IDs.
I create the help file, which gets the help topic ID, and then go around the forms and set their HelpContext values to them. Since the level of maintenance needed is very low - the form is unlikely to change help file context unless something major happens - this works just fine.
We use Help&Manual - its a wonderful tool, outputting almost any format of stuff you could want, doc, rtf, html, pdf - all from the same source. It will even read in (or paste from rtf (eg MSWord). It uses topic ID's (strings) which I just keep a list of and I manually put each one into a form (or class) as it suits me. Sounds difficult but trust me you'll spend far longer hating the wrong authouring tool. I spent years finding it!
Brian