Jump to content

madis

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by madis

  1. I must have read a different post then.
  2. You can't really mask the default San Andreas HUD. You can't even get the image out of it. For radar map, there's a Lua-replacement built from ground up, though. Not sure which is the best one, but there are many when you search for "radar" in community.multitheftauto.com (maybe something is already included with default MTA package as well - don't know)
  3. madis

    Second Camera

    From that gtaforums topic I linked, it seems to me that this area was never actually researched (to programmatically add CULLs or at least the mirrors/screens).
  4. madis

    Read!

    To have some low-cost servers with less bandwidth usage. Sure you can use a different server for downloading resources already (right?), but having a popular server with lot of new players every day would probably eat up the bandwidth there soon (if you don't want to pay big bucks). The internet speed is quite good for lot of us nowadays (at least for me ), so using correctly balanced P2P would not effect gameplay nor ping (too much). Plus, if the server is active, there are a lot of people to download resources from, so potentially fast download. I'm not saying it's worth the development time or the server should use 1GB of resources, but that it's not a dumb idea. I would like to state again that if you really do have 1GB of resources in your server, then zip up the client-side part and just give a link for that on your web page, so people wouldn't need to wait ingame (or create a torrent out of it). Or use asynchronous ingame downloading if possible.
  5. madis

    Second Camera

    It could enable making portal-like "holes". Didn't know about that 8-track screen. EDIT: Found some old discussion about it on gtaforums http://gtaforums.com/topic/203741-8-track-screen/
  6. madis

    Read!

    I actually had a similar idea, but implementing it is not worth it. If you have a 1 GB resource, then distribute the client side (via torrent if it'll be an active one) and allow to download it externally.
  7. madis

    -3 Letters-

    Spot The Unknown SGR
  8. madis

    -3 Letters-

    Professional Quadbike Racer XYX
  9. You can use pairs() with any table, but ipairs with indexed-table (=array), that is, where keys are: 1,2,3,4,... g_Window.labels is a key-value table, because it has keys: "label1", "label2" instead of 1,2; so you need to use pairs in that case. Why ipairs is even needed? ipairs iterates in the same order as the indexes advance, but pairs doesn't care about order.
  10. madis

    -3 Letters-

    Mighty Northern Octopus SAP
  11. local otherPlayer = exports["ID_System"]:getPlayerFromPartialName(thePlayer, otherPlayer) A little advice (might not help to solve your problem). Don't reuse variable names, however convenient it seems. It seems that at first otherPlayer is player's nickname and later otherPlayer is a player element.
  12. madis

    Is this ok?

    It works, but with the current code value is myTable[9] also if row=1 or value of array element is false or nil. You could also do this: local myVariable = myTable[math.min(row-1, 9)] in which case if row is less than 2, myVariable would be nil and also if element value is false or nil, it will be propagated to myVariable as well (not take the 9th element).
  13. If one can decompile script easily, then one can also easily remove the key check easily. However, in theory, one could encrypt part of the code, which can only be decrypted (on the fly) with key sent from some server.. every time that resource starts. (though acquiring that key wouldn't be too hard then as well). If client (who wants resource from you) allows to open-source it later, then that is the best protection if you don't want anyone else to sell it. But if you want to sell the same content to multiple clients, then it's not a viable option. You should research if the person you sell your stuff to, really is trustable or not (google him, ask others, etc). Study some licenses and attach one with your script. If your client violates it and resells your content then you could use some legal measures. If you have client side scripts, which can be easily copied by anyone - try to use more server side functions (e.g send some parts to server from client and do some work server-side). Create a portfolio, so people can at least "see" what you've done, in order to avoid buying same thing from others. Or. Just don't care.
  14. madis

    onClientRender

    I suggest you add timer and output how long your callback took on each call (outputting time might be slow itself, keep that in mind), extra 0-3ms is very OK in my opinion.
  15. More on that topic: http://lua-users.org/wiki/TernaryOperator
  16. Hey, developers, found this (as it was in top of reddit), should be really useful for you (unless you already have something as nice): http://jagt.github.io/clumsy/ Not affiliated to me at all, just looks useful.
  17. What happens when you remove all files from your music tracks folder?
  18. It seems that setWeather affects all the players, because there's no player argument for it server-side. It does make sense actually, because weather conditions change the physics of elements a bit (I think) and would cause some weird effects for other players to see.
  19. Using ingame rendering in the main menu looks nice. However, two states should be distinguished. Connected and not connected. Not connected: Shows the preset 3D scene. This could include preloading the game before showing the menu, but it doesn't have to wait for that. Showing static image for not loaded game would also be OK while the feature will be implemented later. Connected: Just show the actual gameplay. Could temporary remove the HUD (and maybe hide some other cegui elements if it would give a nicer background) (be sure not to add it back later if it was already disabled by the player). Some alpha-channeled background-color would also give positive effect on this one. And/Or ingame blur. Why no static background? The 3D stuff is already streamed in and rendered IIRC, also you can see what's going on while e.g changing your key bindings. Then again, it's not worth wasting time on while there are more important reports on the bugtracker.
  20. Indeed, quite similar. Thanks for the link.
  21. All I found from the community center is a rope to come off from helicopter.
  22. Ninja Rope is a rope you can throw to a target position (against walls, vehicles, etc) and which pulls you to that position. While being in a vehicle you can also set the rope handle to vehicle not you by pressing N. It's currently only local side, haven't tested with others and there are some disturbing glitches. E.g you can't shoot a new rope while being in air (except if wearing jetpack and using pistol). The rope won't pull you while you use any movement buttons (left, right, up, down) by design. There is no swinging, as you can't move in air. Using jetpack helps, but that's fake. If getting to the target it will get bouncy. Download Try it out and tell me what do you think, where would you use it, and what's missing. There's not much I can do with physics nor can I make the rope to bend. Fun thing to do: use a sniper and shoot to far away. Wait for the rope to get there and start pulling you / your vehicle. Other fun thing to do. Throw a rope against vehicle and put your end of the rope to other vehicle. Then get into the vehicle you attached the rope to.
  23. Oh! Thanks for the explanation. Too bad it wasn't stated in the wiki.
×
×
  • Create New...