• Making a Gamemode To Gamemode addon converter
    2 replies, posted
I'm quite new to Lua in the respect that I could probably correct Lua errors when I see them, and I could probably make edits to addons to make them work differently to how I want them to, and I was just wondering (because of the upcoming release of the new nutscript 1.1 cityrp schema) how hard would it be to make a "wrapper" which would allow addons from DarkRP to work in nutscript. Now I'm not looking for 'serious rp-ers' to tell me that darkrp is cancer and that nothing made for darkrp should be converted, I'm looking for a kickstart into what I would need to create such a thing I'm talking about. As far as I'm aware (probably wrong) this 'wrapper' would include something that lists all of DarkRP's functions and have them be replaced/interpreted as their equivalent nutscript functions. So if a darkrp addon is using DarkRPvars.("Job") (or whatever the thing you use to retrieve someones job in darkrp is). It would be interpreted as char:GetClass (or similar, idk) I'm not looking for someone to [B]make this[/B] for me, I'm looking for a possible explanation on how this would be done and maybe a link to a few Gmod Wiki pages. If I do end up producing this and it's successful I'll be making it open source as I want a gamemode to combat darkrp in the server list and I feel a lot of people stray away from nutscript because of the lack of support it gets. Thanks, -Tom EDIT - After looking shit up, An approach I could take is using string replacement and having the DarkRP functions be replaced by their Nutscript Equivalent, If this is ineffective as a method please comment your reasoning
I recommend just recoding the addons for NutScript 1.1.
[QUOTE=robinkooli;52389234]I recommend just recoding the addons for NutScript 1.1.[/QUOTE] As in just making it compatible per addon? I was thinking that but I wanted to make a wrapper to kind of make NS a more mainstream option.
Sorry, you need to Log In to post a reply to this thread.