Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

Zeriab

Member
  • Content Count

    188
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Zeriab

  1. Technically it's possible if you can get your games on something like OnLive. It is a game streaming service, where you send input to them and they stream the game back. It just requires their client. I do believe they have made one for Android. I remember playing the demo of a RPG Maker XP game there some time ago. (Can't find anymore though)
  2. Zeriab

    Change Map IDs

    You can rename them manually, but you would then have the problem of updating all references to the map. This includes the mapInfos.rxdata which the editor and some custom scripts uses.
  3. I have a bunch of unfinished stuff: http://sites.google.com/site/zeriabsjunk/home/unfinishedstuff *hugs*
  4. I think there is a script called Squad movement or something like that by Near fantastica which may do you want you want
  5. While I did use .inject which can be a bit hard to understand the much more important part is the way I used an uniform distribution function to implement a biased distribution. This is not specific to Ruby or RGSS. First let me go through the problems with your current approach: def logs_type_random while @logs_type == 0 if rand(100) == 0 # 1 in 100 chance @logs_type = 10 else if rand(50) == 0 # 1 in 50 chance @logs_type = 5 else if rand(40) == 0 # 1 in 40 chance @logs_type = 4 else if rand(30) == 0 # 1 in 30 chance @logs_type = 3 else if rand(20) == 0 # 1 in 20 chance @logs_type = 2 else if rand(5) == 0 @logs_type = 1.5 end end # end of while end # end of method logs_type Let me start with some syntactic sugar advice to prevent the syntax errors you would otherwise get. Use elsif instead of else if as you would otherwise have to put all the extra ends you are currently missing which is pretty tedious. Doing that the code will look like this: def logs_type_random while @logs_type == 0 if rand(100) == 0 # 1 in 100 chance @logs_type = 10 elsif rand(50) == 0 # 1 in 50 chance @logs_type = 5 elsif rand(40) == 0 # 1 in 40 chance @logs_type = 4 elsif rand(30) == 0 # 1 in 30 chance @logs_type = 3 elsif rand(20) == 0 # 1 in 20 chance @logs_type = 2 elsif rand(5) == 0 @logs_type = 1.5 end end # end of while end # end of method logs_type You have noticed that there are issues with the way you choose the @logs_type because of the loop. It is not a nice way do to it. There is a big chance that no log type is chosen in the if branch, in fact it's 69.5% with 3 significant digits. Sure, after 15 iterations there is less than 0.5% of no log type has been chosen, but there is always a chance of it taken a long time. There might also be issues with the pseudo-random number generator which increases the chance of many iterations and there may also be cycles where it never completes.not In practice though speed is probably not a problem. That the actual percentage is different from what you think is. I did some millions of calls to the method and with two significant digits here were the chance of each log type being chosen: 10 => 3.3 % 5 => 6.5 % 4 => 8.0 % 3 => 10 % 2 => 15 % 1.5 => 57 % It may of course differ now and then, but the law of big numbers means that it will very unlikely be a big difference. You can use my weighted_random method which ensures only one rand() call is needed. Here's an example where I have: 1 in 100 chance of getting 10 1 in 50 chance of getting 5 1 in 40 chance of getting 4 1 in 30 chance of getting 3 1 in 20 chance of getting 2 517 in 600 chance of getting 1.5 (approximately 86%) The reason for 517 is simple because that was the remainder. (I return the number rather than assigning it to a specific variable) def logs_type_random i = weighted_random([6, 12, 15, 20, 30, 517]) case i when 0 return 10 when 1 return 5 when 2 return 4 when 3 return 3 when 4 return 2 when 5 return 1.5 end end I hope it helps you understand this random thing better ^_^ *hugs*
  6. For the biased distribution I suggest doing something like this: def weighted_random(array) sum = array.inject {|sum, n| sum + n} n = rand(sum) array.each_with_index do |i, index| return index if n < i n -= i end end # Retrieve the index with 1/100 chance of 0 being picked (1+50+30+10+5+4 = 100), 50/100 chance of 1 being picked, ... index = weighted_random([1, 50, 30, 10, 5, 4]) # If we want the first index to start at 1 instead of 0 #index += 1 *hugs*
  7. The problem with saying (software) piracy == stealing is that stealing sorta implies the removal of stolen goods. Whether it should be illegal or not, should 'officially' be illegal but officials turning a blind eye except for big fish or whatever I am not really sure. It just should not be as bad as physically stealing something. As for the other kind of piracy, yes, that is definitely wrong. No they don't. VHS's deteriorate over time. As a pure analog media the deterioration has a direct impact unlike digital media which are way more resistant to deviations.
  8. after def fullscreen() try putting return and see what happens
  9. The question of who has which engine is interesting. While there is work one can do without having the engine if twice as many people have access to one engine over the other it should be considered when choosing the engine to use. Another thing to consider is which style you prefer. I am not talking about how it is to develop in one engine over the other, but rather the style of the game as perceived by the player. RMXP games and RMVX games have a different feel about them. Of course you can change it completely, but not staying with the style of the resources provided will take way more time and energy than following it. *hugs*
  10. But then you can just have multiple arrays. You also don't have to keep it all in memory. You can use the large yet slow harddrive if you want. Anyway, the max map size Dubealex found is not correct as there doesn't seem to be a specific limit to the number of event commands you can have. Having an event with 10k event commands may not cause lag.
  11. Did you know that you can know falsehoods?
  12. I think you can solve the problem by swapping the common event call and self-switch command. That said parallel processes stop once you transfer to a new map. I am not sure exactly when it will stop processing since the transfer is occuring in the common event. I recommend using Autorun as Trigger since that captures player control while the intend of a parallel process is something which can run 'parallel' to whatever you are doing. (Time systems, burn on specific terrain tag, etc.) Since the self-switch command relies on the current map you may still have to change it before you transfer to a new map. It is worth noting that the page does not change immediately when you change the self-switch, it changes the page as a part of a map-update cycle. You can have fun determining during which commands the page can change because it's not all ^_^ (There is a little safety feature which makes it more tedious to figure out) P.s. If you use the Erase event command you'll have the event appearing again should you ever revisit the map. *hugs*
  13. Wrong, it's 10%, not 5%. Heard it in science, and the movies "The Sorcerer's Apprentice" and "Scott Pilgrim Vs. The World" both mention it. The story is that you never use more than 10% of your brain at any given time. Interestingly other research has shown sleeping people using 15-18% of their brain and up to 30% while being awake. Did you know there is a lot of contradictory research results out there?
  14. So you want some malware which can prevent a given program for running and at the same time mess up your player's computers. I really do hope no one will help you with your request. Anyway I thank you for the warning. I'll remember not to run any of your games as I am opposed to the idea of deliberately and intentionally adding malware to your games. *hugs*
  15. If you want the number of maps you can use this snippet: infos = load_data('data/mapinfos.rxdata') $game_variables[1] = infos.size
  16. I believe such scripts are typically called visual equipment. I hope this will help your googlin's ^_^ *hugs*
  17. What is the script supposed to do?
  18. Zeriab

    Seeking scripting tutor

    I know you are not asking for basic scripting tutorials but I'll still recommond Khatharr's 4 tutorials which I think are really nice: RGSS Graphics for Noobs - Part 1, Tired of being 'the weakest link'? RGSS Graphics for Noobs - Part 2, Are you gonna eat that? RGSS Graphics for Noobs - Part 3, iiiiiit's BACON! RGSS Graphics for Noobs - Part 4, Twas brillig, and the slithy toves did gire and gimble in the wabe... *hugs*
  19. Here ya go: http://paste-bin.com/view/e365a0f9 *hugs*
  20. :3 I'd forgotten about Dreamspark. What are the requirements for membership? *hugs*
  21. Ultimate is for teams you have also Visual Studio 2010 Premium and Visual Studio 2010 Professional. The title say OEM Software so it may be legit where the software you can buy is a single computer non-commercial home version. Want it on a new computer? You'll probably have to buy a new version. (This is assuming it's legit.) Another question you can ask yourself is if you really need the extra stuff in Ultimate compared to the Professional version. The professional version costs $549 or $1199 depending on which msdn subscription you want. (I dunno what the differences are) There is a bunch of stuff in Ultimate that you very likely don't need. The big question is whether the bug tester is the same or not. *hugs*
  22. Wii + WiiWare has a nice selection ^_^ That is probably bullshit though. You can definitely get busted if you breach copyrights by hosting roms.
×
×
  • Create New...