Fable3mod - RDF feed
type: channel
description: Discussions for modifying Fable 3
items: Improved script injection method
items: Re: Improved script injection method

Improved script injection method
type: item
description: This method allows you to make changes to the script without relaunching the game Setup: use Catspaw's GFWL emu Put DLC folder to Fable 3 game directory create folders: data\scripts\MyMod create text files MyScript01.lua and MyScript02.lua inside "data\scripts\MyMod" directory open dir.manifest (inside "data" directory) with notepad and add: scripts\MyMod\MyScript01.lua scripts\MyMod\MyScript02.lua MyScript01.lua is executed once per 60 frames (one second on 60fps rendering) MyScript02.lua is executed only when screen is fading now make little test start game alt+tab write in MyScript01.lua Debug.SetUseFreeCamera(true) alt+tab to game now you can fly around then alt+tab to notepad and replace TRUE to FALSE Debug.SetUseFreeCamera(false) alt+tab to game, camera should go back to normal :) For modders: I used DEMO001 quest code, so if you used it too, you need to replaced it
creator: Artofeel
date: 2014-11-16T14:30:51-00:00

Re: Improved script injection method
type: item
description: I've written a nifty little script into myScript02 Toggle spoiler while ((Inventory.GetNumberOfItemsOfType(GetLocalHero(), 'ObjectInventoryPotionHealth')) < 100) do Inventory.AddItemOfType(GetLocalHero(), 'ObjectInventoryPotionHealth') end while ((Inventory.GetNumberOfItemsOfType(GetLocalHero(), 'ObjectInventoryPotionSlowTime')) < 100) do Inventory.AddItemOfType(GetLocalHero(), 'ObjectInventoryPotionSlowTime') end while ((Inventory.GetNumberOfItemsOfType(GetLocalHero(), 'ObjectInventoryPotionDeadRising')) < 100) do Inventory.AddItemOfType(GetLocalHero(), 'ObjectInventoryPotionDeadRising') end It tops you up to 100 potions of each type every time the screen fades to black... (since I'm so filthy rich, it's only an annoyance to have to go buy potions... never mind that I'm virtually invincible at this point, anyway...)
creator: TheGeniusSavant
date: 2015-09-24T21:03:10-00:00

Re: Improved script injection method
type: item
description: Yeah... got tired of the kiddos sending me all over Albion looking for Toy Bows and Porcelain Dolls... so I added this... I <3 LUA!!! Toggle spoiler local fillGiftItems = { 'ObjectInventoryGiftChessboard', 'ObjectInventoryGiftChocolates', 'ObjectInventoryGiftFlowers', 'ObjectInventoryGiftGoblet', 'ObjectInventoryGiftHandMirror', 'ObjectInventoryGiftJewellery', 'ObjectInventoryGiftPerfume', 'ObjectInventoryGiftFruitBowlSilver', 'ObjectInventoryGiftRing', 'ObjectInventoryGiftToyBow', 'ObjectInventoryGiftToyGun', 'ObjectInventoryGiftToyHorse', 'ObjectInventoryGiftToyPorcelainDoll', 'ObjectInventoryGiftToyRagDoll', 'ObjectInventoryGiftToySword', 'ObjectInventoryGiftToyTeddyBear', 'ObjectInventoryGiftGemAmethyst', 'ObjectInventoryGiftGemDiamond', 'ObjectInventoryGiftGemEmerald', 'ObjectInventoryGiftGemJet', 'ObjectInventoryGiftGemRuby', 'ObjectInventoryGiftGemPearl', 'ObjectInventoryGiftGemTopaz' } for key,value in pairs(fillGiftItems) do while ((Inventory.GetNumberOfItemsOfType(GetLocalHero(), value)) < 5) do Inventory.AddItemOfType(GetLocalHero(), value) end end
creator: TheGeniusSavant
date: 2015-09-25T10:29:41-00:00

Re: Improved script injection method
type: item
description: For some reason I had to change the lines RunScript("scripts\\MyMod\\MyScript02.lua") RunScript("scripts\\MyMod\\MyScript01.lua") to RunScript("MyMod/MyScript01.lua") RunScript("MyMod/MyScript02.lua") Before this started working. I'm not sure if it's something unique to my installation, but I thought I would share in case it helps anyone else.
creator: Thatoneperson
date: 2017-05-25T15:06:50-00:00

Re: Improved script injection method
type: item
description: I spent the last two hours getting this down as I personally didn't feel like hunting for anything. It gives you all cosmetics, clothing, normal furniture,collectible paintings, weapons, spells, gifts, and 100 potions (Admittedly I stole the code for the gifts and potions from TheGeniusSavant). Wait until you've at least gotten to be able to use all modes of weapons normally before using it, otherwise I've heard your game will freeze if you try to enter the road to rule for the first time if you have all weapons. In hindsight, I should have put this as MyScript02 as I have multiples of gauntlets in my armory. What that means for spell weaving is anyone's guess. Other than that, it should have no problems. On another note, thank you guys so much for keeping this forum up and running with great information as I don't know what I'd do without it for modding this game! Hopefully we can do similar, if not greater stuff with Fable 4 whenever that's released.
creator: SaintLucifer1776
date: 2018-02-04T07:18:13-00:00

Re: Improved script injection method
type: item
description: Revisiting Fable iii after a long break. I used this script injector with no problems under the Windows 8 o/s. The script injector doesn't seem to work with Win 10 x64 Home (insider build 1501). I did try the syntax change mentioned a few posts before. Is there anything that needs to change to get it working in Win 10 x64?
creator: JdMclovin
date: 2018-12-05T01:12:25-00:00

Re: Improved script injection method
type: item
description: probably this version of Catspaw's GFWL emu doesn't work on win10 did you try to update it?
creator: Artofeel
date: 2018-12-05T06:06:06-00:00

Re: Improved script injection method
type: item
description: I've tried catspaw xlive 15A, 15B, 15C, and 15D. It's strange, The entries I have in MyScript01.lua are working, where I set wealth to 100 and building condition to "normal" for a village I visit. However, MyScript02.lua isn't working where I used to run scripts to open Mistpeak Demon door and other things. Example for Mistpeak demon door.. if not Layers.IsLayerActive("QD030_MistpeakValleyDemonDoorTransition") then QuestTracker.SetAsCompleted(GetLocalHero(), "QD030_MistpeakValleyDemonDoor") Layers.ActivateLayer("QD030_MistpeakValleyDemonDoorTransition") end The above won't work in either of the .lua files.
creator: JdMclovin
date: 2018-12-05T21:23:40-00:00

Re: Improved script injection method
type: item
description: so 15D is the latest version, don't tracked it for a long time.. I have win7, can't help you with win10 there is high probability that something with the game paths (or rights) did you try different installation folder? (if you install Fable to Program Files ofc)
creator: Artofeel
date: 2018-12-08T08:07:32-00:00

Re: Improved script injection method
type: item
description: ok...figured out the problem. I had modded levels.bnk to where I removed the intro movies on game startup. In doing so, it prevented any scripting from working in the injector, such as scripts I had mentioned in prior post. I reset levels.bnk to original and then scripting in the injector was working again.
creator: JdMclovin
date: 2018-12-09T02:34:37-00:00

Re: Improved script injection method
type: item
description: I can't get the scipt injector file :< it redirects me to a blank page with address ww.fable3mod.net/forums/index.php?t=getfile&id=89& Does someone have a copy please?
creator: XanWasting
date: 2020-03-30T20:46:18-00:00

Re: Improved script injection method
type: item
description: it's working for me here the mirror www.mediafire.com/file/ryrd4hxk9fhqjgs
creator: Artofeel
date: 2020-03-31T06:29:28-00:00

Re: Improved script injection method
type: item
description: Thank you, this link works.
creator: XanWasting
date: 2020-03-31T09:06:15-00:00

Re: Improved script injection method
type: item
description: I am brand new to modding games so I'm not sure if I understood where the files are supposed to be placed. I set it up GameFiles/data/scripts/MyMod/then the myscripts 01 and 02.lua. Its not working for me so I definitely did something wrong, I have the GFWL emu and I copy pasted the script injector into the GameFiles folder. Where am I supposed to place the lua folders so that they work for me?
creator: Dischord
date: 2020-06-03T04:22:29-00:00

Re: Improved script injection method
type: item
description: Dischord wrote on Wed, 03 June 2020 05:22 I am brand new to modding games so I'm not sure if I understood where the files are supposed to be placed. I set it up GameFiles/data/scripts/MyMod/then the myscripts 01 and 02.lua. Its not working for me so I definitely did something wrong, I have the GFWL emu and I copy pasted the script injector into the GameFiles folder. Where am I supposed to place the lua folders so that they work for me? Take out any spaces in your lua filenames so that they look like this: MyScript01.lua MyScript02.lua They're in the right place, though. Hang on. Where did your game come from that it has a "Gamefiles" folder? Mine doesn't. (Probably unimportant) You probably missed this, but you're going to have to edit dir.manifest to add these two lines scripts\MyMod\MyScript01.lua scripts\MyMod\MyScript02.lua Put them right at the end of the file and save it. dir.manifest is found in the /data/ folder. It's actually just a plain text file that tells the game what files to load and where they are. Does your version come with the DLC? If it does (and it honestly should), there should be a "DLC" folder somewhere. Put the Script Injector in there. Not loose files, in a folder that the game will load; something like "10_ScriptInjector". Also, the gfwl emu can go in there as well. Inside, the folders should contain a content.xbx file and a Content folder which should have three more files in it. The xlive.ini and xlive.dll files should go in the base folder (Which would be your Gamefiles folder).
creator: squark
date: 2020-06-04T01:48:17-00:00

Re: Improved script injection method
type: item
description: This is helpful Squark, thanks!
creator: FalseZen
date: 2020-06-09T17:11:56-00:00