• Hell's Resource Generator
    8 replies, posted
Hi there folks. I assume that many of you hate the fact that some important tools like (Fox-Warrior's Resources Generator) are limited to windows or needs wine and etc. So I've made a basic (ATM) resource generator that is written in python, which means - Cross platform! Just install python, get my software and enjoy! [url]https://github.com/YehonatanTs/Hell-s-Resource-Generator[/url] P.S - Soon I'll add more options and stuff to make it even better. :quagmire:
I will assume that everyone of us hate the fact that we have to install Python just to use your tool on cross platforms.... Why not collab with Fox-Warrior and make a better program that runs across platforms...
[QUOTE=nzkfc;46194032]I will assume that everyone of us hate the fact that we have to install Python just to use your tool on cross platforms.... Why not collab with Fox-Warrior and make a better program that runs across platforms...[/QUOTE] I kinda assume that most people has python installed, you're kinda right because not everyone has it. I've made it in couple of hours and python is pretty strong and has awesome built-in functions, maybe I'll convert it to Java which probably has even more installs I don't know Fox-Warrior and I have no idea how to contact him.
I'm one of his close friend (fox-warrior), I'm gonna send him the link of this thread as soon as possible.
This could be done in simple shell scripting... No need for python really
[QUOTE=TacticHell;46197636]I kinda assume that most people has python installed, you're kinda right because not everyone has it. I've made it in couple of hours and python is pretty strong and has awesome built-in functions, maybe I'll convert it to Java which probably has even more installs I don't know Fox-Warrior and I have no idea how to contact him.[/QUOTE] Dear TacticHell, awesome idea :), when i've made FRG (Fox-Warrior's Resources Generator) the linux and mac support didn't exists, for me python is an awesome language, its my primary scripting language, and is installed by default on most linux distributions, but not in windows, its too complicated to install python just to run FRG, .NET is present on recent distros, but you can use py2exe to produce an executable file for windows, py2exe ([url]http://www.py2exe.org/[/url]) can generate a single exe file with python included on it, it's verry portable, but a little bigger file will be generated. I can help you to make a better version of it if you want without problem :), You can contact me via steam: [url]http://steamcommunity.com/id/Fox-Warrior/[/url] Cheers, F0x
[QUOTE=Fox-Warrior;46233379]Dear TacticHell, awesome idea :), when i've made FRG (Fox-Warrior's Resources Generator) the linux and mac support didn't exists, for me python is an awesome language, its my primary scripting language, and is installed by default on most linux distributions, but not in windows, its too complicated to install python just to run FRG, .NET is present on recent distros, but you can use py2exe to produce an executable file for windows, py2exe ([url]http://www.py2exe.org/[/url]) can generate a single exe file with python included on it, it's verry portable, but a little bigger file will be generated. I can help you to make a better version of it if you want without problem :), You can contact me via steam: [url]http://steamcommunity.com/id/Fox-Warrior/[/url] Cheers, F0x[/QUOTE] Why not write it in C++? Available on all distributions for Windows, Mac and Linux Otherwise, for Linux and Mac I suggest using Perl. It's there by default in all UNIX distros.
I don't mean to hijack, but why create an external tool for an internal issue? Why not just write a recursive resource loader that simply adds all of the gamemode content ( addons write their own resource.Add... ), which also handles .gma files? Unfortunately with engine.GetAddons( ) broken on the SERVER we're forced to read from the addons/ directory ( also if you extract an addon to remove Lua or whatever and still want the client to download it, create an empty .gma file in gamemodename/content/workshop/ with the workshop id in the name of the file without any additional digits but it may contain a comment so you know what it is for )... Info: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html[/url] I already have a fileio system that reads the contents of .gma and can distinguish between gma with maps and can ensure map-based gma files are only added if the map is loaded ( will release fileio very soon on my dev-base and then the resource loader will use the fileio method of building a list of files to process ). Anyway, there's that, combined with FastDL instructions: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/fastdl_setup_instructions.lua.html[/url] and server setup instructions: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html[/url] One problem I see with this already is vtf/vmt are related, resource.AddFile should automatically add the other ( which, depending how the list is set up in gmod, may help fill up the server/fastdl list prematurely ) just like mdl has associated files. But, I've found resource.AddFile to be somewhat unreliable so I'd recommend just using resource.AddSingleFile and ensuring the files are added.
[QUOTE=Fox-Warrior;46233379]Dear TacticHell, awesome idea :), when i've made FRG (Fox-Warrior's Resources Generator) the linux and mac support didn't exists, for me python is an awesome language, its my primary scripting language, and is installed by default on most linux distributions, but not in windows, its too complicated to install python just to run FRG, .NET is present on recent distros, but you can use py2exe to produce an executable file for windows, py2exe ([url]http://www.py2exe.org/[/url]) can generate a single exe file with python included on it, it's verry portable, but a little bigger file will be generated. I can help you to make a better version of it if you want without problem :), You can contact me via steam: [url]http://steamcommunity.com/id/Fox-Warrior/[/url] Cheers, F0x[/QUOTE] Dear all, i released a new version (3.0.0) of my resources generator, including Linux, Mac, and Windows support! Thread: [url]http://facepunch.com/showthread.php?t=1448269[/url] Enjoy ;) Cheers, F0x
Sorry, you need to Log In to post a reply to this thread.