• How to: Use ACF mobility components
    219 replies, posted
  • I don't get it work on my linux debian server I tried ow over 2 hours.. no success. I created a dir "ACFSvn" and "ACF" I checkout to ACFSvn. Got "trunk" and "branches". I took content from branches/models (lua, materials, co.) to "ACF". I took the content of trunk to "ACF" and override some files that are already exist. But not working I get errors when I try to chooce something. Serverconsole prints this [CODE] Didn't find entity duplicator records [addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua:63] attempt to index field '?' (a nil value) [addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua:63] attempt to index field '?' (a nil value) [addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua:63] attempt to index field '?' (a nil value) [addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua:63] attempt to index field '?' (a nil value) [addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua:63] attempt to index field '?' (a nil value) Didn't find entity duplicator records Didn't find entity duplicator records [/CODE] Client [CODE] [ACF\Shared\ACFGunList.lua:145] attempt to call global 'ACFGunGUICreate' (a nil value) [/CODE]
  • Avatar of Amplar
  • linux doesn't work with acf at the moment, i'm going to fix that though. it's just a case sensitivity problem.
  • Avatar of Frankess
  • All you need to do is change in lua folder every name of file to lowercase and then in lua/autorun/acf_globals.lua replace everything from line 37 to 67 with that: [code]AddCSLuaFile( "acf_globals.lua" ) AddCSLuaFile( "acf/client/cl_acfballistics.lua" ) AddCSLuaFile( "acf/client/cl_acfmenu_gui.lua" ) AddCSLuaFile( "acf/client/cl_acfballistics.lua" ) AddCSLuaFile( "acf/client/cl_acfmenu_gui.lua" ) if (SERVER) then include("acf/server/sv_acfbase.lua") include("acf/server/sv_acfdamage.lua") include("acf/server/sv_acfballistics.lua") elseif (CLIENT) then include("acf/client/cl_acfballistics.lua") --include("acf/client/cl_acfmenu_gui.lua") end include("acf/shared/rounds/roundap.lua") include("acf/shared/rounds/roundaphe.lua") include("acf/shared/rounds/roundhe.lua") include("acf/shared/rounds/roundheat.lua") include("acf/shared/rounds/roundhp.lua") include("acf/shared/rounds/roundrefill.lua") include("acf/shared/rounds/roundfunctions.lua") include("acf/shared/acfgunlist.lua") include("acf/shared/acfmobilitylist.lua") include("acf/shared/acfsensorlist.lua")[/code]
  • Well if I do I get new error [CODE] [@gamemodes\sandbox\gamemode\spawnmenu\controlpanel.lua:99] ControlPanelBuildFunction Error: [@lua\includes\extensions\vgui_sciptedpanels.lua:166] vgui.Create: Error when calling 'PANELTABLE':Init ([@ACF\Client\cl_ACFMenu_gui.lua:59] bad argument #1 to 'pairs' (table expected, got nil)) [/CODE] I am sure cause he couldn't find.. taht sux. I have to change every file to lowercase?
  • I get still the same error I even changed in /addons/ACF/lua/weapons/gmod_tool/stools/acfmenu.lua at line 39 to lowercase like this [QUOTE]local pnldef_ACFmenu = vgui.RegisterFile( "acf/client/cl_acfmenu_gui.lua" )[/QUOTE] but same
  • Avatar of Frankess
  • I own Debian6 server and ACF works well there. You have two options, you can wait for an update to ACF which will do this for you or you can remove ACF, download it again (You don't need to join both folders. We get them already combined) and do what I wrote above. After that copy the code which I already changed for you and replace with it lines between 37 and 67. Finally, check that all folders and files agree with paths in the pasted code.
  • Well I guess I have to wait. I mean its not difficult to change to lowercase. I tried how you said with redownload I even found in roundsdir and other dirs in the lua files "AddCSLuaFile" it needed to be lowercase or client wouldn't download the files (because of file not found). Now I get agian "attempt to call global 'ACFGunGUICreate' (a nil value)". I do not find more things.. what I can change.. No Idea anymore. I will just wait for the next release
  • Avatar of bitter146
  • I must be doing something wrong with this. I have an engine (no matter which engine) connected to a transaxial gearbox (no matter which gearbox), which is connected to two wheels. When the body of the vehicle is frozen in the air, the engine seems to work fine, but when its unfrozen and actually moving, its just stuck at idle speeds, with minimal power (although it IS moving, at a VERY SLOW speed), unless I have the gear ratio at something like 0.07. I can't find ANY tutorials either, so I don't know what I'm doing wrong. :c
  • Avatar of Complicated
  • [QUOTE=bitter146;35782131]I must be doing something wrong with this. I have an engine (no matter which engine) connected to a transaxial gearbox (no matter which gearbox), which is connected to two wheels. When the body of the vehicle is frozen in the air, the engine seems to work fine, but when its unfrozen and actually moving, its just stuck at idle speeds, with minimal power (although it IS moving, at a VERY SLOW speed), unless I have the gear ratio at something like 0.07. I can't find ANY tutorials either, so I don't know what I'm doing wrong. :c[/QUOTE] Clutch?
  • Avatar of bitter146
  • Only seems to do anything when its set to 1 (full) which just revs it to max. I tried variable input which did the same. Either no difference or full clutch, which obviously didn't help. [editline]1st May 2012[/editline] OK, so I seem to have gotten it to work. I think it was just alot of trial and error that I needed to work out. Thanks anyway though.
  • Avatar of TestECull
  • I've bumped into a bit of a problem regarding the engines. [url=http://cloud.steampowered.com/ugc/594717735958402090/072E79F5948A3BBC96ACADD49BE253F9790715E5/]Check the debugger readout for the second engine in this screenshot.[/url] I've had every engine I've tried do that from time to time, usually as a result of a lag spike but it happens entirely at random too. Replacing the engine fixes it. I've also noticed the V8s tend to be a bit touchy about linking. The power comes out the front for some reason, and the transmission can't neatly touch the engine like it can with the inlines. Other than that I'm loving ACF so far. Still gotta figure out how to make this stuff work properly with my heavy-ass cars, but so far I'm liking it. Especially the radials. I also have a suggestion regarding the gearboxes: Could they also have an input that takes an integer and directly shifts to that gear? Say, I have a 6-speed on a truck, and I hit a button marked R. It would send a "1" to the gearbox, which would command it to select the first gear on the list(I usually set this to a negative ratio for reverse, 2 is first gear, so on and so forth). If I wanted to jump straight to third gear I could hit another button, which sends a "4" into the gearbox, selecting the third forward ratio present.
  • Avatar of Amplar
  • frankess, no, every lua file that references another file, has to be made lower case IN the code, as well as the file names. it's an easy but painstaking process
  • Avatar of Cinnamon
  • [QUOTE=TestECull;35788124] I also have a suggestion regarding the gearboxes: Could they also have an input that takes an integer and directly shifts to that gear? Say, I have a 6-speed on a truck, and I hit a button marked R. It would send a "1" to the gearbox, which would command it to select the first gear on the list(I usually set this to a negative ratio for reverse, 2 is first gear, so on and so forth). If I wanted to jump straight to third gear I could hit another button, which sends a "4" into the gearbox, selecting the third forward ratio present.[/QUOTE] Is that not how it already works?
  • Avatar of TestECull
  • [QUOTE=MrWhite;35789769]Is that not how it already works?[/QUOTE] I'm not sure. Might be? I tried wiring a dual input to one with a 1 and a 2 and it just sort of didn't work.
  • Avatar of Frankess
  • [QUOTE=Amplar;35789554]frankess, no, every lua file that references another file, has to be made lower case IN the code, as well as the file names. it's an easy but painstaking process[/QUOTE] Well, I did like I said and every thing works fine. From what I have found, only lua file referencing to others is "acf_globals.lua" and that is where I only changed paths. And of course I had to make lowercase everything in the lua folder. [code] acf/client/cl_acfballistics.lua acf/client/cl_acfmenu_gui.lua acf/client/cl_acfballistics.lua acf/client/cl_acfmenu_gui.lua acf/server/sv_acfbase.lua acf/server/sv_acfdamage.lua acf/server/sv_acfballistics.lua acf/client/cl_acfballistics.lua acf/shared/rounds/roundap.lua acf/shared/rounds/roundaphe.lua acf/shared/rounds/roundhe.lua acf/shared/rounds/roundheat.lua acf/shared/rounds/roundhp.lua acf/shared/rounds/roundrefill.lua acf/shared/rounds/roundfunctions.lua acf/shared/acfgunlist.lua acf/shared/acfmobilitylist.lua acf/shared/acfsensorlist.lua autorun/acf_globals.lua autorun/battlepod.lua effects/acf_ap_impact/* effects/acf_ap_penetration/* effects/acf_ap_ricochet/* effects/acf_bulleteffect/* effects/acf_cookoff/* effects/acf_heat_explosion/* effects/acf_muzzleflash/* effects/acf_scaled_explosion/* effects/acf_tracer/* effects/shaped_charge/* entities/acf_ammo/* entities/acf_engine/* entities/acf_gearbox/* entities/acf_gun/* entities/debris/* [/code] But if you think is not enough, I can make lowercase everything in ACF and send it back (packed) to you. I have a time.
  • [QUOTE=TestECull;35792894]I'm not sure. Might be? I tried wiring a dual input to one with a 1 and a 2 and it just sort of didn't work.[/QUOTE] if you wire it up to the "Gear" it'll take the value you put into it as the gear.
  • [QUOTE=Frankess;35793407]Well, I did like I said and every thing works fine. From what I have found, only lua file referencing to others is "acf_globals.lua" and that is where I only changed paths. And of course I had to make lowercase everything in the lua folder. [code] acf/client/cl_acfballistics.lua acf/client/cl_acfmenu_gui.lua acf/client/cl_acfballistics.lua acf/client/cl_acfmenu_gui.lua acf/server/sv_acfbase.lua acf/server/sv_acfdamage.lua acf/server/sv_acfballistics.lua acf/client/cl_acfballistics.lua acf/shared/rounds/roundap.lua acf/shared/rounds/roundaphe.lua acf/shared/rounds/roundhe.lua acf/shared/rounds/roundheat.lua acf/shared/rounds/roundhp.lua acf/shared/rounds/roundrefill.lua acf/shared/rounds/roundfunctions.lua acf/shared/acfgunlist.lua acf/shared/acfmobilitylist.lua acf/shared/acfsensorlist.lua autorun/acf_globals.lua autorun/battlepod.lua effects/acf_ap_impact/* effects/acf_ap_penetration/* effects/acf_ap_ricochet/* effects/acf_bulleteffect/* effects/acf_cookoff/* effects/acf_heat_explosion/* effects/acf_muzzleflash/* effects/acf_scaled_explosion/* effects/acf_tracer/* effects/shaped_charge/* entities/acf_ammo/* entities/acf_engine/* entities/acf_gearbox/* entities/acf_gun/* entities/debris/* [/code] But if you think is not enough, I can make lowercase everything in ACF and send it back (packed) to you. I have a time.[/QUOTE] wow buddy. Thank you. I thought u just ment the acf/ and autorun/ :). Didn't change it in effects and co. Got it work now
  • Avatar of viperfan7
  • well since I dont know where else I'd suggest something, but I do have 3 suggestions, a locking differential, and the ability to actualy type out the gear ratio you want, I've noticed that ONLY the sliders are actually use to set the ratios, and that you cant set it by typing the ratio you want into the text box, that way we could have gearboxes with overdrive gears since the sliders only go up to 1, and single output gearboxes to be more like a car's transmission
  • Avatar of TestECull
  • Ok, after playing around with ACF for a few days I think I've come up with a proper opinion. First of all: It's bloody awesome. I think it should be part of vanilla. I've always had trouble wheel powering things, either my engines lacked the power to get more than 10MPH or they had the power and the gears just skipped and spazzed. ACF powertrains don't do that. It's also significantly inflating my E2 capabilities, which is nice. I've also fiddled around a bit with the guns, found them to be pretty badass as well and the damage engine is nice. The bad, arranged in order of "This shit needs fixing" to "I'd love to see this but it doesn't affect my use of the mod": Transmissions do NOT like it when a wheel they are linked to is removed. If you do, the transmission glitches and forces the engine to scream at redline as soon as active is 1. Throttle does nothing and the car will not move. Replacing the engine just causes the new one to glitch, replacing the transmission fixes the old engine. The ammo refill piece is quite glitchy. Spams lua errors, goes invisible at certain angles, often doesn't want to re-arm my weapons. Wouldn't mind that being fixed. Sometimes the guns take about 2-3x as long to reload as they should. It seems to affect the big ones the most, I've had to spend three minutes waiting on a 203 to rearm before. The power comes out the wrong end of the V12s and V8s. The power should be coming out the back of the engine where there's absolutely nothing, currently it comes out at the accessory drive. I'd also like to see some of the nodes moved inside the models a bit to enable tucking gearboxes right up to engines. You cannot link engines directly to props. This is fine for wheel powered creations, helicopters and boats where you'd use a gearbox anyway, but in an airplane you tend to bolt the propeller right onto the crankshaft. Allowing us to do this, at least with the radials, would make planes so much simpler to make. A bit more engine variety could be useful. Boxers, V6s, V10s, I5s, twins, singles, I3s, R5s, R9s, all in varying displacements. I don't think twin and tri row radials are necessary, I've found it quite easy to just stack the appropriate number of single-rows to create such an engine. I also wouldn't mind an airplane-specific jet engine that produces thrust instead of torque, functionally a thruster but with all the ACF trimmings beside. More transmission variety would be nice. Perhaps we could move a slider to select how many gears the box has? Some of my cars would be best with one speed forward one reverse, others are perfect with five speeds, still others work great with a three speed. Some would like a six speed, but I cannot do this unless I have a second gearbox providing reverse. I'd also like to see an automatic mode that handles everything. You just put it in P R N D L2 L1 and it behaves exactly like a typical automatic would. As mentioned above, standard single-exit transmissions would be great too. I'd also like to see a transfer case pop out for use with them on 4WD vehicles. Sounds for the gas turbine. I love that engine, 200n/m at idle through 4000RPM and only 40kilos, makes for a great skidsteer engine. It's just...silent. And lastly: A parking brake function. I'd love to be able to send the gearbox a 1 and have it lock the attached wheels in return. Absolutely love the addon, can't wait for new versions!
  • Avatar of Cinnamon
  • About your concerns: The gas turbine is fixed I think; it makes sound now. As far as linking engines to props, just use a 1 speed gearbox with a 1:1 ratio. Dual speed gearboxes are in the works.. they can serve the function of transfer cases, I'd imagine.
  • Avatar of Frozzy
  • Not sure to ask it here or the WIP thread,but is there any good tutorial on ACF? Because when i try to find one on youtube,there isn't one. EDIT: Also,somehow the guns don't work even linked to the (magically dissapearing)ammo boxes. EDIT: These are the errors: [addons\achblarg\lua\entities\acf_ammo\init.lua:194] attempt to index field 'BulletData' (a nil value)
  • I think I've fixed the issue. I will reinstall Gmod (Shitty addons are a majority of what I have slowing my loading speed.) And I will get a link from a friend who can assist me with the problems I had when downloading which caused... Well it wasn't there at all. So yeah. Oh, lol, this is EXACTLY how good my tanks were when I had the really old version. Reaaallly good right? Same quality as Karbine. Oh yeah... [url]http://www.youtube.com/watch?v=PjibvAx0L04[/url] "Some good recoil handling there..."
  • Is there... any particular reason you decided to quote the entire OP? Also, has the wiki for this ever been remade? What with the gmod wiki killing mod pages.
  • [QUOTE=DarkMonkey;36019830]Is there... any particular reason you decided to quote the entire OP? Also, has the wiki for this ever been remade? What with the gmod wiki killing mod pages.[/QUOTE] I didn't intend to. Fixed it.
  • Avatar of Cinnamon
  • No, you hit the reply button, which copies the entire message and places it in quote tags. Please edit your post so the page isn't twice as large as it needs to be. Thanks.
  • Is there any chance that ACF will ever support linking props to the inputs of gear boxes? Building cars is fun as it is, but being able to have a full on transmisson with homebuilt engines would rock.
  • Avatar of Cinnamon
  • Doubt that will happen, since the tech behind the gearboxes is just maths, and not any real forces or physics are involved. Translating it into the physics environment in GMod would be complicated, I'm sure. Plus, the whole point of ACF Mobility is to provide a proper replacement for half-assed propulsion systems and overcomplicated engines. Am sad, but it's the wave of the future. Wave of the future. Wave of the future.
  • Ah, good point which I didn't think about. Am sad too. But the wave of the future will prevail!