|
Re: Debug commands |
Tue, 18 March 2014 11:44 |
Schuldiner
Messages: 12 Registered: September 2013
|
Junior Member |
|
|
Debug.GiveAllMeleeWeapons
GUI.DisplayMessageBox("OK")
while (GUI.IsDisplayBoxActive()) do
coroutine.yield()
end
return true
end
I'm assuming you found this code from here. You don't really need all of this unless you are trying to test something. Anyway, the correct order should be like this:
GUI.DisplayMessageBox("OK")
while (GUI.IsDisplayBoxActive()) do
Debug.GiveAllMeleeWeapons
coroutine.yield()
end
return true
end
Correct me if I'm mistaken, I suck at coding. Anyway, if you are using that scriptactivation.lua method try replacing everything with:
ScriptActivation[ScriptCode.QU000].AbleToRun=function ()
Debug.AddDLCDogBreedPack()
Debug.AddAllDLC1Items() (use these only if you have purchased the dlc)
Debug.AddAllDLC2Items()
Debug.GiveAllMeleeWeapons()
Debug.GiveAllRangedWeapons()
Debug.AddAllClothing()
Debug.AddAllClothingF2()
Debug.AddAllClothingAccessories()
Debug.AddAllHairstyles()
Debug.AddAllSpecialEditionTattoos()
Debug.AddAllClothingSuits()
return nil
end
[Updated on: Tue, 18 March 2014 11:45] Report message to a moderator
|
|
|
|
|
|
|
Re: Debug commands |
Wed, 19 March 2014 03:03 |
cjchris
Messages: 7 Registered: March 2014
|
Junior Member |
|
|
Was a typo in the forum not the script activation page was writing from memory rather copying and pasting.
Will paste up the text in my LUA later. I'm sure it's something small I'm forgetting to add and others having a dry run is the better way to run.
OK so I tried these copied and pasted straight from debug menu file taking them out of parenthesis
ScriptActivation[ScriptCode.QU000].AbleToRun=function()
Debug.GiveHeroWeapon('ObjectInventory_L_Longsword_Spartan')
Debug.GiveAllMeleeWeapons()
Debug.GiveAllRangedWeapons()
Debug.GiveAllSpellGauntlets()
GUI.DisplayMessageBox("OK")
while (GUI.IsDisplayBoxActive()) do
coroutine.yield()
return nil
end
then the gui window, only just realised the halo weapon was the only line to execute that arrived in game but the rest broke.
[Updated on: Wed, 19 March 2014 04:31] Report message to a moderator
|
|
|
|
Re: Debug commands |
Wed, 19 March 2014 07:12 |
cjchris
Messages: 7 Registered: March 2014
|
Junior Member |
|
|
That would make sense as I was at the very first flit switch when activating these. Line by line worked fine at adding quest items though like the baron sword and ranged weapons. I'll have a play and find out anyway.
|
|
|