Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. lol, that actually made me laugh...
  2. thats how mine rings looks: basically a 1 fat white ring with ~20pixel thickness on 210x210 and 9 10pixel thick white rings with dimensions 200x200, aligned that way their lines is in middle of big ring. each next ring is half of prev one(rounded up.) e.g. 180degree section, then 90degree section and their right side is aligned on top of the image warning:in case they are antialiased, make sure .png doesn't cut half of aliasing off, or doesn't make bright edges of pic, so basically only way to implement proper antialiased image is with .dds, but afaik .dds has very big sizes of file.(correct me if i'm wrong) proportions should stay pretty much same another question:so for optimal draw, i should turn resolution based resizing off and put radius of 128 by default?
  3. addCommandHandler("fixall",function() for _,v in pairs(getElementsByType("vehicle")) do fixVehicle(v) end end)
  4. thats plain stupid to let something like math.random(1,1) in script, just remove it if its the case
  5. invisible button+static image+gridlist+edit propably. or dx functions
  6. stop freeroam if u dont want f1 menu
  7. would be nice if someone, who know a bit of a game files could say me following: 1)rate of oxygen decreasing 2)rate of oxygen increasing 3)effect with full skill 4)is time affected by being inside vehicle
  8. wait a week or two, and then watch the code (ill try commenting it for you ) EDIT: you can check this post, for a function for generating round thing out of dx rectangles viewtopic.php?f=91&t=33267&start=15#p348435
  9. karlis

    very annoying bug

    I was just wondering because this seems similar to the failure Intel Express Chipset 4 users receive. I'm glad it fixed itself though. i hope...yet mta ran fine for 1.5hours
  10. use thePlayer, not source. also anrufer var is not permited in outputChatBox
  11. https://wiki.multitheftauto.com/wiki/ACL
  12. karlis

    very annoying bug

    seems to be fixed(didn't edit post, cuz that would not be seen) if it appears again ill make new topic, but this is solved and might get locked.
  13. karlis

    very annoying bug

    srry, i didnt get you
  14. karlis

    very annoying bug

    theres many resources in the past with much more draws i used w/o any problems, like dxspeedometer, dxscoreboard, customblips, maximap, etc, afaik my direct x is up to date(for XP) maybe switching to open GL?
  15. karlis

    very annoying bug

    hmm, around 13-30, that isn't that much i did run over 200 dxDrawImageSection before, and no stuff like this
  16. karlis

    very annoying bug

    when i work with my dx hud resource very often game starts to lag veery badly, and after some time textures fails stopping resource or even restarting mta doesn't help-i need to reboot pc this how it looks after textures fail:
  17. seems it should work, however this is more compact function isInTable(tbl,arg) for _,v in pairs(tbl) do if arg==v then return true end end return false end
  18. it's a fact that images with sizes that are power of 2 (2^x, like 16x16, 32x32, 64x64, etc) work best with dx functions. as for air im not aware of any way ok then make it 256x256 for both ring and hp masks(hp mask have to be centered inside the big ring) and i think i found a way to avoid that bug with light borders-tested it with black, and it didn't make them, so ill draw background from the hp/armor color, then draw black over them. thanks for effort.
  19. but still you could re-script the camera engine, and add fov ability to it. viewtopic.php?f=98&t=30076
  20. wont work that easy... .txd have alpha mask, and its more like image archive, not image.
  21. i can help with that. i also was making a round hud (but i went the other way with circular bars, half is just hidden so it just rotates pretty smooth and accurate), but got bored on making new weapon icons btw what image sizes (in pixels) you're using? im using 210x210 main ring, and 200x200sections of the hp would be nice to get 1.5times more quality at least and they have to be white so i can recolor then. hmm, maybe i should also use that hiding techniques, not sure how to do that yet tough. also, is there a way of getting air left when diving? and btw that hud looks awesome
  22. karlis

    _G

    no, they still will show, if the local value exsists at the moment _G is called EDIT AGAIN:seems that local values rnt stored indeed. number1=1 string="string" local number2=2 local string2="string" for k,v in pairs(_G) do if type(v)~="table" and type(v)~="function" then print(k..":"..v) end end --[[this returned: string:string number1:1 _VERSION:Lua 5.1 ]]
×
×
  • Create New...