Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

  1. #1
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    752

    Default [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Changes:

    - Updated gmod version check and the hard-coded revisions number that Wire_PrintVersion shows.
    lua/autorun/Wire_Load.lua
    weapons/gmod_tool/stools/wire.lua
    lua/wire/UpdateCheck.lua

    - Put the SWEPs and ENTs to here own wiremod Category.
    lua/entities/gmod_wire_hoverdrivecontroler/shared.lua
    lua/entities/sent_deployableballoons/shared.lua
    lua/weapons/RemoteController/shared.lua
    weapons/laserPointer/shared.lua

    [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.-fixes-cleanup1.jpg
    [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.-fixes-cleanup2.jpg


    - Added a play and a stop buttons to the sound emitter stool, so you can play the sound to try the sound without making a sound emitter or open the sound browser. The save system of the browser was also changed, the sound emitter has his own saving now. The sound browser open the parent folder of the sound set in the sound emitter, when you open it via the stool.
    lua/wire/client/sound_browser.lua
    lua/wire/stools/display.lua

    [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.-fixes-cleanup3.jpg


    - Changed the unit converting system to fit with the latest tf2 engine of gmod. The length and speed units are changed from 1 source unit = 1 inch to 1 source unit = 0.75 inches. A source unit isn't 1 inch long, it's 0.75 inches long. Also added u (source unit, default length unit), u/s (default speed unit), u/m and u/h to the e2 unit converter. More infos here: Dimensions - Valve Developer Community!
    lua/entities/gmod_wire_expression2/core/unitconv.lua
    lua/entities/gmod_wire_speedometer/init.lua


    Patch:
    fixes and cleanups.patch

    I hope you like it.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  2. #2
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Good work. :winner:

  3. #3
    Wire Sofaking immibis's Avatar
    Join Date
    Nov 2009
    Location
    Wellington, New Zealand
    Posts
    401

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Isn't that last one going to break almost all existing uses of unit conversion?

    0a3c696d6d696269733e092e2e2e7774662c20776879206973 20746865726520612068696464656e20666f72756d2063616c 6c6564206469783f200a3c4a6174476f6f6477696e3e093e2e 3e200a3c4a6174476f6f6477696e3e093c2e3c200a3c49616d 4d634c6f76696e3e094e4f200a3c49616d4d634c6f76696e3e 094e4f204e4f204e4f204e4f204e4f

  4. #4
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    752

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Quote Originally Posted by immibis View Post
    Isn't that last one going to break almost all existing uses of unit conversion?
    Hmm, I think no, because it seem be not used often, the only use is to show you something on a screen in a another unit that inches or source units. E2 that uses some advanced physic stuff like applyForce() always took source units and source units are the same than before the patch and something like E:vel() or V:length() always returned the speed or the length in source units/s or source units.
    And even if some thing brake then you can fix it easily.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  5. #5
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    I don't know if it's such a great idea to change unit conversion. For me, it's fine, but it might not be for other people.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  6. #6
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    I don't think changing the unit conversion will seriously affect any contraptions and if it does its not hard to fix.

  7. #7
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Quote Originally Posted by Drunkie View Post
    I don't think changing the unit conversion will seriously affect any contraptions and if it does its not hard to fix.
    *coughholoScaleUnitscough*

  8. #8
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Quote Originally Posted by initrd.gz View Post
    *coughholoScaleUnitscough*
    If that was fixed it would fuck up a lot of contraptions, but your more than welcome to fix it.

    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  9. #9
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    752

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    Quote Originally Posted by initrd.gz View Post
    *coughholoScaleUnitscough*
    The units that the holos uses are the same then before, the source units wasn't never equal to to inches (I think). The worst things with holos that may can happen is that they that uses values from toUnit, fromUnit or convertUnit are getting smaller or bigger, the only functions of the e2 that are changed are toUnit, fromUnit or convertUnit (just indirect). More complex stuff usually uses the default unit of source that got mistaken with inches.
    Last edited by Grocel; 08-26-2010 at 05:59 PM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  10. #10
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,020

    Default Re: [WireSVN] 2200 Multiple Files in lua: Cleanup, fixes and changes.

    I agree with updating the unit conversion. Imo its not used very often (partly cos everyone knows they are wrong) and where it is used, its often just for displaying to the user (for example speedometers).
    Comprehensive Gmod physics guide - Ballistic trajectory with drag - Autodyno engine performance test
    Quote Originally Posted by janvos2506 View Post
    i just going to type the code over and over again and maybe il remeber it then
    Don't make the mistake these skydivers did and use any of my Gmod physics models for real life situations...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots