Jump to content

Estelle Pienaar

Resident
  • Posts

    143
  • Joined

  • Last visited

Everything posted by Estelle Pienaar

  1. Thank you very much! This is a great introduction and I will visit the College of Scripting, Science, and Music ASAP!
  2. Before starting with my question I wanted to thank you all!. It was the generous help in this forum that helped me getting my first project started (and then reading on in the wikis): An adventure game system. This was a quite ambitious project for someone that had never written one single line of code in any computer language before. Now I have finished a proof of concept for my system and it works quite neat (I think). If you want to see what your initial has helped me to achieve, you can try the mini-game for free here: http://maps.secondlife.com/secondlife/Escapades/149/183/24 in the meantime I have started to develop a "real" game based on the system and I realised that with more content, the script lenght and efficiency is really getting an issue. Amongst other things I would like to create some user defined functions for repeating processes. The lslwiki as well as the official sl-wiki give a short overview and 2-3 random examples. When reading the text I have the feeling that it's made for programmers who already have some experience with user created functions in other languages and who just need to get their head arround the lsl specifics. The explanations seem not to be sufficient for someone who has never done anything like it, like me. Do you guys know any tutorials that explain the nature of user created functions in a more or less systematic way, starting with simple functions? Maybe in another scripting language than lsl? I would so much appreciate finding a source that helps me getting my head arround this topic.
  3. Hi Nova. I am not sure if I fully understand your post. Do you suggest that my proposal of setting additional brackets is a mistake? Or has Handarido put wrong brackets somewhere? Can you show us what the correct line of code would be?
  4. Maybe try to add brackets. I remember that this has once solved a similar problem for me with an OR command: if((llGetSubString(data, 0, 1) != "//") || (llStringTrim(data, STRING_TRIM) != ""))
  5. What i am wondering right now is if it is at all necessary to have rez rights in order to create beams. If the beams are particles/objects that are spawn from an invisible prim that you are wearing, then you shouldn't need rez rights at all? I have never created such an object, but I own HUDs that do similar stuff and they always work, even if there is no rez permission.
  6. At least for me these errors during the unpacking had a severe impact on my SL experience. For 3 weeks I had menu flickering, "stutter" rendering (the picture froze for up to half a second while the statistics bar showed my 30fps) and graphical artefacts..! I thought that it's again an AMD incompatility thing (I have a HD7970 and I am used to havingt LL incorparating seriouss AMD bugs reliably every 3-6 Months). But after trying all kinds of stuff, I read this thread and realized that it could be due to these update files missing. So today I did a clean re-install of the viewer and all these hick-ups are gone. This is however a bigger problem. None of the automatic updates has worked for me for at least 10 weeks. I already did a manual clean re-install 5 weeks ago and the problem of update files missing reappeard right away the next time. Well for the next time I know that I will cancel the installation completely and maybe and disable automatic updates until this mess gets fixed.
  7. Did you have error messages on SL viewer updates lately? (I copy and paste from another thread): I get the updates automatically and they install the next time I start the viewer. This time there were several errors during the unpacking process. So I downlaoded the update from the website and the same thing occured when that was unpacking. One of the files was the crash_logger but I didn't notice what the others were. I got past the errors by clicking the Skip button for each file, and managed to log in, but I've no idea if the files that I skipped will have any effect on my SL useage. I am asking because I have a Radeon HD7970 and I had this problem. And for a few weeks I have now had flickering, "stuttering" rendering, graphical artefacts. I thought that it's again an AMD incompatility thing. But today I did a clean re-install of the viewer and all these hick-ups are gone. PS: One thing that would interest me very much, Husky, is what framerate do you get with your graphics card? I have a horrible framerate in SL considering to the capabilities of an HD7970. When I put the graphical settings in the position between high and ultra, I get between 20 and 30 fps (which is an insult for the horsepowers my GPU has).
  8. Creating a hash for unique channels sounds like an interesting idea to check out. Just to add to the list of possible security measures: A scripter could create a "hash ID" by taking the value of minutes from llGetTimeStamp at the moment the message is sent, run them through a function, shorten it e.g. to the first four digits and add them to the string which is sent by the HUD. Make the same mathematical calculations in the receiving attachment and check if the numbers are identical.
  9. Easiest method, but absolutely no security. If a product ever gets popular and a griefer searches the channels for the communication, he/she can send commands to your customers attachments! See also this discussion: http://community.secondlife.com/t5/LSL-Scripting/Channel-Fair-Use/td-p/2784502
  10. I have copied this script snippet from Innula Zenovka. She has posted it in another thread just a few days ago. This should do the job: if(llGetOwnerKey(id)==llGetOwner()){ //then the message is from an object belonging to my owner //do the stuff I should do }
  11. I have to say that I totally disagree with most of the statements here. It should be common sense that it is totally legal that spare parts of machines can be legally delivered by other companies. Just because you bought your car from Volkswagen doesn't mean that you are not allowed to pimp it with products from other suppliers. A good example is the Nespresso case about other suppliers offering capsules for the Nespresso machines. http://www.retaildetail.eu/en/eur-europe/eur-food/item/16051-nestl%C3%A9-loses-nespresso-court-case So what you are trying to do should be absolutely legal. If you find a way to offer additional supplies or to pimp a product, you can do so. On the other hand it's also the the right of the producers to try to create a product which is hard to come by for other supplier. (But obviously here the original creator has done a poor job.) Reading that creators of mesh attachments don't secure their listener scripts makes me concerned. Not because these creators lose control of their supply chain, that's just their bad luck and a business oportunity for smart people like you. It makes me concerned because it seems to opens up a door for griefers to do all kinds of bad stuff (make a shirt texture change for a nude texture or something ugly). Of course there could be other security mesuares in place. If I would still be young, with too much time on my hands and nothing better to do, that's the kind of thing I might start looking into right now... Creators, if you don't want to risk problems with your customer base, please secure your chat-listener communication of your procducts. Just picking a random chat number = asking for trouble.
  12. @lunar: Great script but you have to create tons of menu buttons to have a good return of your time investment. I won't need it often and I would prefer the good old counting the letters method... (Unless menu buttons are created by user input like notecards).
  13. One general issue: Please do specify in the subject of your forum message the abstract of your question. For example: "Loading channels with notecard?". Almost everyone who is posting here needs help with scripting, so your subject does not give the reader any usefull information. Thanks for being a bit more specific next time PS: Oops, I wanted to reply to Kobra, not to Rolig!
  14. Thank you very much for all your thoughts which are really helpfull! The basic set-up will indeed be seperate objects sending messages to a HUD upon touch. I therefore tend to opt for the solution with a temporary new state so that the sendig object cannot be touched.
  15. For a point and click game I will have objects that send messages to a HUD. In order to avoid that a player clicks several times on the object while the HUD is processing (and it might get confused if process A is not finished while another request for process A comes in), I was wondering what would be the best way to stop the script in the sender for X seconds, so that it is either not clickable or so that it drops the sending request if the same avatar has clicked the object X seconds earlier.
  16. 1) Create a roleplay group. 2) Restrict the access to the roleplay group, so that people can only join upon invitation by an administrator. 3) Only people in the group can rez objects on your sim. 4) There should be no more problems.
  17. I think that Rollig has pointed out a great way to achieve the effect with a script. If you don't find such a script on the marketplace or in a free script repository (I have never seen such a script), you could pay a scripter to do it for you by posting a request in the "wanted" forum. http://community.secondlife.com/t5/Wanted/bd-p/Wanted I think that such a script would be a success on the marketplace. If you make a deal with the author that you just get a liscence to use it and he/she can also sell it on the marketplace, you might get it for an affordable price.
  18. Thanks for the really great idea, Rolig. I was trying to get my head arround the same challenge and you are offering a great and simple solution to this problem!
  19. Thank you very much for the encouragement, Rolig. I certainly needed it right now! Next time I will first copy the script to my inventory and then rename it...
  20. I am wondering if it wouldn't be an easier implementation to create two attachments (one closed umbrella and one opened umbrella) and to make always one of the two invisible (then change their visible/invisible status by a chat command or by clicking on the visible one). You should be able to find such a free script somewhere..
  21. I really didn't want to bother you all again so soon, but then I had such an accident today! After scripting for more than an hour I wanted to save the results by renaming the script in the prim and then putting it in the inventory. But instead of "rename" I accidently clicked on "delete". Is there any way to restore the script or is all the work gone for good?
  22. Thanks a million for your valuable feedback. A mix between short code snippets in nested if-else if blocks and longer scripts in a central "prim server" seems like a great solution.
  23. Hi guys, I am still trying to develop an adventure game HUD. You have been such a great help for getting one milestone done: processing the status of tasks (which partially depend on each other). http://community.secondlife.com/t5/LSL-Scripting/String-message-to-a-hud/td-p/2706518 One very important thing for me would be to avoid a linear story line: player does "task 1", then "task 2", then "task 3". I really want a dynamic process where the player can do several tasks and series of tasks on a sim and maybe even have different storylines depending on which tasks the player chooses to do. I think I have managed to code a process that does keep good note of the game progress. However I did hit another wall and I want to get your opinion on how to deal with it: Let's say for example that there are 100 tasks and a lot of things could happen here (demanding very different events): unlocking a door, a hud showing a new item in the inventory, the player gets teleported, there is a conversation between an NPC and the player etc. As I aim to have a free order of things to happen, I need an index of 100 code snippets. After the script has determined if a task can be accomplished (the necessary previous task has been done) and it gives the green light, then it needs to jump to the corrisponding snippet. I have scripted a process that does (1) determine if a task cannot yet been done / can be done / has been done and then gives it a unique index variable x. Now I want the code to jump to a code snippet that I have named from 0 to X. But it seems not to be possible to define a varialbe for the LSL command "jump", or is it? Now I am looking for the best alternative to reach the necessary code snippets. I can think of 3 alternatives: - I put (to stay with my example) 100 short scripts in the HUD and make my main script talk to the chosen one - the downside would be X players with a high number of single scripts in their HUDs running arround == lag! - I could "outsource" the code snippets into the task objects. They have scripts anyway and I could integrate the additional code blocks there. However that would mean setting 100 listening objects == lag! - I could index my code snippets with a pyramid scheme of flow control commands (if) (else if) combined with "jump" commands. All three solutions seem quite dowdy to me - but if I find no better alternative I would go for the pyramid scheme. Anyone has a better idea?
  24. Lumia has one huge flaw: When the connection to the internet is lost (e.g. no mobile phone network or bad wifi), the whole app is going in stand-by and a msg is displayed that it is reconnecting. After the reconnection whole (unsaved) work is lost. Working with a text editor is of course possible, but it's not much different to using pen and paper. It's a pity that there seems to be no script editor with specification files for LSL.
  25. I am travelling a lot and I use an Android tablet in these periods. Is there any LSL scripting editor for Android? Or is there an online editor that I could use? What is the best solution to script on an Android tablet?
×
×
  • Create New...