I have looked through DarkRP code to learn to create my own addons and game modes. I am trying to understand all that is happening and I have seen fn.id many times and fail to understand what it means. Anyone who can point me in the right direction I would appreciate it :)
fn.Id is the identity function, from the fn module. It returns the arguments passed to it.
Related
I'm not sure where this should be posted but I have a suggestion for Google Docs. My elementary school children are learning to write and I believe it would be beneficial if Docs would point out when their spelling or grammar is wrong via underlining, as is the case now. However, it would be nice if the suggestions could be turned off so that the student is informed something is wrong but they need to be the one to retry until they get it right. Simply clicking the suggestion does not lead to greater understanding. Would this be possible? Thank you,
Chris Barnes
e
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 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.
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 am a bit confused about the purpose of the enum value Success of the WebExceptionStatus enumeration. I did a search and did not find this enumeration being used outside the WebException class. This is very confusing to me. Why would an exception be used to indicate a successful action/state. Am I missing something, or did I not search thouroughly enough? Was it introduced for future functionality?
Please if anyone does know its basic purpose I would be thankfull if s/he shares with us the explanation.
See if this might help.