• From Clockwork to Nutscript
    15 replies, posted
I have come to ask a potentially stupid question, please be gentle and explain like I'm five. I recently got a hold of a schema for Clockwork, however am currently experiencing some difficulties actually using it with Clockwork. With that being said, I would like to know just how difficult it would be to convert the Clockwork schema over to Nutscript -- if any conversions at all are necessary. I am inexperienced when it comes to this kind of stuff, so I would appreciate any answers and/or advice.
*If* you paid for it, it means you paid for the support, why don't you ask for help on the C16 forum ? Btw, what's the problem you're "experiencing" ?
-edit- The serial issue is no longer an issue. Though I would still like to know the level of challenge in converting to Nutscript since I kind of like Nutscript better anyway.
Well, it "may be possible" to make some kind of wrapper but i would take a lot a time, you'll also need to recode some features from CW to NS (Because some of them don't exist in NS). I don't think it's a good idea to try to "port" an entire CW Schema
[url]https://docs.google.com/document/d/1u4SqpLsY4PX4dLFXEPczJ2_Ck4xBGCOwvDT227br9mo/edit[/url]
[QUOTE=Tomelyr;47784335][url]https://docs.google.com/document/d/1u4SqpLsY4PX4dLFXEPczJ2_Ck4xBGCOwvDT227br9mo/edit[/url][/QUOTE] This has come in handy, though I'm still at a loss on changing quite a few things as far as the code goes. The guide has helped me make some progress, but there's still quite a bit that it doesn't cover.
[QUOTE=Sexy Frog;47813288]This has come in handy, though I'm still at a loss on changing quite a few things as far as the code goes. The guide has helped me make some progress, but there's still quite a bit that it doesn't cover.[/QUOTE] You do know that you have to mention the actual problem and not just the fact that you have one :D
[QUOTE=freakyy;47816109]You do know that you have to mention the actual problem and not just the fact that you have one :D[/QUOTE] Noted. Anyway; I'm trying to work with hl2rp for NS and turn it into a metro schema. At the moment, the error I'm getting in my srcds console is as follows: Lua Error: Couldn't include file 'nsmetro2033\gamemode\cl_init.lua' (File not found) (<nowhere>) [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: Couldn't Load Init Script: 'nsmetro2033/gamemode/cl_init.lua' However, my cl_init.lua (as well as my init.lua) is where it's supposed to be and this is what's inside: [img]http://puu.sh/i2Ff7/7e73bf1993.png[/img]
That usually happens due to a (major) error in the code.
I kind of converted CW HL2RP into Nutscript, it was load of works. Mostly I re scripted plugins as the base gamemode contains the most important things. Though what I can can say: 1. You need someone who is an experienced scripter to do it, it is not easy. 2. Most needs to be remade from scratch as Nutscript is completely different. 3. It takes time.
Are you talking about CW -> NS 1.0 or CW -> NS 1.1?
[QUOTE=Tomelyr;47819741]Are you talking about CW -> NS 1.0 or CW -> NS 1.1?[/QUOTE] CW -> NS 1.1 But, I've decided to just work off of hl2rp from NS 1.1 and change things as need be that fit metro.
i meant blt950. NS 1.0 was quite harder to reapply an CW shema to it then NS 1.1.
[QUOTE=Tomelyr;47820344]i meant blt950. NS 1.0 was quite harder to reapply an CW shema to it then NS 1.1.[/QUOTE] I ported plugins and re-scripted for NS 1.1.
What doesn't make sense to me is that I'm getting the exact same error even while running regular hl2rp by Chessnut from github. There shouldn't be a problem with the cl_init.lua there... *edit* Nevermind. I figured it out. Had to add gamemode nsmetro2033 to the game.cfg and it ran it fine. Though I now have a slew of other errors. [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: Class 'mutant' does not have a valid faction! [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: [NutScript] Item 'bluecombrad' has a non-existent base! (base_clothing) [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: [NutScript] Item 'greencoat' has a non-existent base! (base_clothing) [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: [NutScript] Item 'greensweater' has a non-existent base! (base_clothing) [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: [NutScript] Item 'hoodeddweller' has a non-existent base! (base_clothing) [Sexy Frog|2|STEAM_0:0:31998299] Lua Error: [ERROR] lua/vgui/spawnicon.lua:107: attempt to compare number with string 1. SetModel - lua/vgui/spawnicon.lua:107 2. onDisplay - gamemodes/nutscript/gamemode/core/libs/sh_character.lua:278 3. setUp - gamemodes/nutscript/gamemode/core/derma/cl_charcreate.lua:62 4. callback - gamemodes/nutscript/gamemode/core/derma/cl_character.lua:194 5. DoClick - gamemodes/nutscript/gamemode/core/derma/cl_character.lua:111 6. unknown - gamemodes/nutscript/gamemode/core/derma/cl_menubutton.lua:52
Apparently from having: FACTION.models = { female = { "models/half-dead/metrollfix/f1b1.mdl", "models/half-dead/metrollfix/f2b1.mdl", "models/half-dead/metrollfix/f3b1.mdl", "models/half-dead/metrollfix/f4b1.mdl", "models/half-dead/metrollfix/f6b1.mdl", "models/half-dead/metrollfix/f7b1.mdl", "models/devcon/mrp/act/female_01.mdl" }, male = { "models/half-dead/metrollfix/a1b1.mdl", "models/half-dead/metrollfix/a2b1.mdl", "models/half-dead/metrollfix/a3b1.mdl", "models/half-dead/metrollfix/a4b1.mdl", "models/half-dead/metrollfix/a5b1.mdl", "models/half-dead/metrollfix/a6b1.mdl", "models/half-dead/metrollfix/m2b1.mdl", "models/half-dead/metrollfix/m3b1.mdl", "models/half-dead/metrollfix/m4b1.mdl", "models/half-dead/metrollfix/m5b1.mdl", "models/half-dead/metrollfix/m6b1.mdl", "models/half-dead/metrollfix/m7b1.mdl", "models/half-dead/metrollfix/m8b1.mdl", "models/half-dead/metrollfix/m9b1.mdl" } } in my code for Survivors gives me the last block of errors: [ERROR] lua/vgui/spawnicon.lua:107: attempt to compare number with string 1. SetModel - lua/vgui/spawnicon.lua:107 2. onDisplay - gamemodes/nutscript/gamemode/core/libs/sh_character.lua:278 3. setUp - gamemodes/nutscript/gamemode/core/derma/cl_charcreate.lua:62 4. callback - gamemodes/nutscript/gamemode/core/derma/cl_character.lua:194 5. DoClick - gamemodes/nutscript/gamemode/core/derma/cl_character.lua:111 6. unknown - gamemodes/nutscript/gamemode/core/derma/cl_menubutton.lua:52 That I posted previously. Having removed the FACTION.models from the code, I was actually able to create a character in the faction without a problem, but I am stuck with the HL2 citizen models.\ What can I do?
Sorry, you need to Log In to post a reply to this thread.