STEAM 组
Soure Mult-Tool SourceMT
STEAM 组
Soure Mult-Tool SourceMT
32
游戏中
198
在线
成立于
2013 年 11 月 23 日
所有讨论 > Help > 主题详情
SlightlyTango 2018 年 9 月 11 日 上午 12:46
Source for the tool? :)
Hi!

I was starting to work on a tool to set up my rather complicated gmod setup automatically. Then I remembered this tool.
Would you be willing to release the source for your tool? :)
It feels stupid for me to reinvent the wheel just to add a few features.
< >
正在显示第 1 - 10 条,共 10 条留言
Wazanator 2018 年 9 月 11 日 下午 8:54 
Sadly I lost the source code for it the same year from a hard drive failure before I was using GitHub.

It's rather simple, it just makes a fake source mod and modifies the gameinfo.txt to load assets. For figuring out what games they had available I just looked through everything in their steam directory for known source games. The code was also really really poorly made. 80% of it was just a giant switch statement.

This is the rewrite I started on a few months ago https://github.com/Jesse-Culver/SourceMultiTool_CSharp/blob/master/SourceMultiToolCSharp/mainMenuForm.cs
I didn't get very far with it before I had to stop to focus on some other stuff.

For Gmod though I later found out you can just change the mount.cfg (garrysmod/cfg/) and it mounts whatever you put in there which is probably what you want. It also will mount any files found in the addons folder as long as it is setup properly (e.g. addons/myassets/models/house/myhouse01.mdl)
SlightlyTango 2018 年 9 月 12 日 上午 11:17 
You won't mind if I take a peek at the disassembled sources? :)
dotnetpeek is pretty much spot on for this stuff. Mostly just interested in the creating of a fake source mod tbh.

My plan is to make a tool that creates an enviroment like the one I have had before, where I host hammer in a sourcemod area, so it can see all of the custom textures and whatnot, and then just copy and run gmod. I have a tool that automatically bakes in all the textures and generates cubemaps, so it's pretty much just the setup that is needed. Sorry, ranting along :').
Wazanator 2018 年 9 月 12 日 下午 6:31 
Yeah that's fine!

But really all I did was take what I wrote in this guide and automated it a bit, keep in mind the tool has a fairly bad bug on my part for finding what you have installed. I assumed at the time the registry entry for Steams install location would be the only place players would have games installed since I never considered people having multiple hard drives. https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=187235526
SlightlyTango 2018 年 9 月 13 日 上午 8:18 
Yeah, took a peek, and then took a little walk along the steam configs. Turns out there are two files with all the paths to the different steam stores (I have two on my computer, so, yay.). So just need to parse that out (or, heh, just do a filthy filllthy regex). Then again, that's just for finding defaults I guess ;).
Wazanator 2018 年 9 月 13 日 下午 5:54 
Yeah, my newer one just looks at libraryfolders.vdf which is a much better way of handling it. Best of luck with your tool!
SlightlyTango 2018 年 9 月 18 日 上午 6:41 
Yo. I have started to cobble together something with a mix of my code, your code for v1 and v2, at https://github.com/magnusjjj/TuxieLaunch .

Can we license it as some open source license? I mean, there is a LOT of copy paste in there :')
Wazanator 2018 年 9 月 18 日 下午 6:41 
Sure if you want to throw a GPL license on it that's fine.
Cook13s 2019 年 10 月 16 日 上午 4:34 
Any updates on this? I was trying to see if I can get this going, I can't find the installer for the updated tool
ljcool2006 2021 年 1 月 11 日 下午 8:37 
Do you still have the hard drive? Would a recovery option be possible?
Wazanator 2021 年 1 月 11 日 下午 10:21 
The drive physically failed. It's not a complicated tool and most of what it does is in the link above.
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情