Jump to content

Search the Community

Showing results for tags 'script compiling'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Nexus Mods Hub
    • Site Updates
    • Projects
    • Site Support
    • Vortex Support
  • Modding Discussion
    • Mod Troubleshooting
    • Mod Ideas
    • Modding Academy
    • Articles and Guides
  • The Lounge
    • Newbies
    • General Chat
    • Gaming
    • Hardware and software discussion
    • Off-Topic
  • Moderation
    • Formal Warnings, Bans and Takedowns
  • Discussions
  • Vortex
  • Archived
    • Nexus Mods app
  • Cyberpunk 2077's Mod Ideas
  • Cyberpunk 2077's Discussion
  • Baldur's Gate 3's Discussion
  • Baldur's Gate 3's Mod Ideas
  • Blade & Sorcery's Discussion
  • Blade & Sorcery's Blade & Sorcery: Nomad
  • Elden Ring's Discussion
  • Elden Ring's Mod Ideas
  • Fallout 4's Discussion
  • Fallout 4's Mod Ideas
  • Fallout 4's Creation Kit and Modders
  • Skyrim's Skyrim SE
  • Skyrim's Skyrim LE
  • Skyrim's Skyrim VR and Consoles
  • Skyrim's Mod Ideas
  • Skyrim's Creation Kit and Modders
  • Monster Hunter's MH Rise
  • Monster Hunter's MH World
  • Monster Hunter's MH Wilds
  • Morrowind's Discussion
  • Morrowind's Spoilers
  • Morrowind's Lore
  • Morrowind's Construction Set and Modders
  • Morrowind's Troubleshooting
  • Mount & Blade II: Bannerlord's Discussion
  • Mount & Blade II: Bannerlord's Old Games
  • Oblivion's Classic Discussion
  • Oblivion's Mod Ideas
  • Oblivion's Mod troubleshooting
  • Oblivion's Oblivion Construction Set and Modders
  • Oblivion's Spoilers
  • Oblivion's Remastered Discussion
  • Ready or Not's Discussion
  • Red Dead Redemption 2's Discussion
  • Red Dead Redemption 2's Mod Ideas
  • Resident Evil Remakes's Resident Evil 4
  • Resident Evil Remakes's Resident Evil 3
  • Resident Evil Remakes's Resident Evil 2
  • Resident Evil Remakes's Resident Evil Village
  • Starfield's Discussion
  • Starfield's Mod Ideas
  • Starfield's Creation Kit and Modders
  • The Witcher's The Witcher 3: Wild Hunt
  • The Witcher's Mod Ideas
  • The Witcher's The Witcher 2: Assassins of Kings
  • The Witcher's The Witcher
  • The Witcher's REDEngine and Modders
  • Spider-Man's Spider-Man Remastered
  • Spider-Man's Miles Morales
  • Spider-Man's Mod Ideas
  • Spider-Man's Spider-Man 2
  • Fallout New Vegas's Discussion
  • Fallout New Vegas's Mod Ideas
  • Fallout New Vegas's Mod Troubleshooting
  • Fallout New Vegas's GECK and Modders
  • Fallout New Vegas's Spoilers
  • Stardew Valley's Discussion
  • Fallout 3's Mod Ideas
  • Fallout 3's Discussion
  • Fallout 3's GECK and Modders
  • Fallout 3's Spoilers
  • Fallout 3's Mod Troubleshooting
  • Dragon Age: Origins's Discussion
  • Dragon Age: Origins's Builder Troubleshooting
  • Dragon Age: Origins's Mod Troubleshooting
  • Dragon Age: Origins's Mod Ideas
  • Valheim's Discussion
  • Dark Souls's Dark Souls
  • Dark Souls's Dark Souls 2
  • Dark Souls's Dark Souls 3
  • Dark Souls's Dark Souls Remastered
  • Mass Effect's Legendary Edition
  • Mass Effect's Original Trilogy
  • Mass Effect's Andromeda
  • Hogwarts Legacy's Discussion
  • Subnautica's Subnautica
  • Subnautica's Below Zero
  • XCOM's Discussion
  • XCOM's Mod Ideas
  • XCOM's Enemy Unknown
  • XCOM's XCOM 2
  • Jurassic World Evolution's Jurassic World Evolution 2
  • Jurassic World Evolution's Jurassic World Evolution
  • 7 Days To Die's Discussion
  • Anno 1800's Discussion
  • Assassin's Creed's Odyssey
  • Assassin's Creed's Valhalla
  • Fallout 76's Discussion
  • Fallout 76's Mod Ideas
  • Far Cry's Far Cry 3
  • Far Cry's Discussion
  • Final Fantasy's Discussion
  • Final Fantasy's VII Remake
  • Final Fantasy's XII The Zodiac Age
  • BattleTech's Discussion
  • Dying Light's Dying Light
  • Dying Light's Dying Light 2
  • Dying Light's The Beast
  • Dragon's Dogma: Dark Arisen's Discussion
  • Dragon's Dogma: Dark Arisen's Mod Ideas
  • Dragon Age: Inquisition's Discussion
  • Dragon Age: Inquisition's Mod Ideas
  • Dragon Age: Inquisition's Troubleshooting
  • No Man's Sky's Discussion
  • No Man's Sky's Mod Ideas
  • The Elder Scrolls Online's Discussion
  • State of Decay's State of Decay
  • State of Decay's State of Decay 2
  • Planet Zoo's Discussion
  • Neverwinter Nights's NWN Discussion
  • Neverwinter Nights's NWN2 Discussion
  • Neverwinter Nights's Mod Ideas
  • My Summer Car's Discussion
  • Metal Gear Solid V: The Phantom Pain's Discussion
  • MechWarrior 5: Mercenaries's Discussion
  • Kingdom Come: Deliverance's KCD1 Discussion
  • Kingdom Come: Deliverance's Modding Tools and Modders
  • Kingdom Come: Deliverance's KCD2 Discussion
  • Devil May Cry 5's Discussion
  • Star Wars Jedi's Fallen Order
  • Star Wars Jedi's Survivor
  • Star Wars: Battlefront II (2017)'s Discussion
  • Sekiro: Shadows Die Twice's Discussion
  • Pillars of Eternity's Pillars of Eternity
  • Pillars of Eternity's Pillars of Eternity 2: Deadfire
  • Palworld's Mod Ideas
  • Palworld's Discussion
  • Palworld's Unreal Engine and Modders
  • Dragon's Dogma 2's Discussion
  • Dragon's Dogma 2's Mod Ideas
  • S.T.A.L.K.E.R. 2's General Modding
  • S.T.A.L.K.E.R. 2's Troubleshooting
  • S.T.A.L.K.E.R. 2's Mod Ideas
  • Horizon Games's Horizon Zero Dawn
  • Horizon Games's Horizon Forbidden West
  • Horizon Games's Ask the Community

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Hi ! I have a problem with compiling scripts. I'm using the CK built in compiler, and having a hard time resolving this issue. I would appreciate some help. I have 2 scripts which I wanted to update. Here is the code of the first script : Scriptname addRemoveSpells extends ObjectReference Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() if Game.GetPlayer().HasSpell(WandAbilityWardObj)==false Game.GetPlayer().AddSpell(WandAbilityWardObj, false) Game.GetPlayer().AddSpell(WandSpellFireObj, false) Game.GetPlayer().AddSpell(WandSpellIceObj, false) Game.GetPlayer().AddSpell(WandSpellLightningObj, false) Game.GetPlayer().AddSpell(WandSpellAvadaObj, false) endIf endIf endEvent Event OnUnequipped(Actor akActor) if akActor == Game.GetPlayer() if Game.GetPlayer().GetEquippedWeapon()!=wand && Game.GetPlayer().GetEquippedWeapon(true)!=wand Game.GetPlayer().RemoveSpell(WandAbilityWardObj) Game.GetPlayer().RemoveSpell(WandSpellFireObj) Game.GetPlayer().RemoveSpell(WandSpellIceObj) Game.GetPlayer().RemoveSpell(WandSpellLightningObj) Game.GetPlayer().RemoveSpell(WandSpellAvadaObj) endIf endIf endEvent SPELL Property WandAbilityWardObj Auto SPELL Property WandSpellFireObj Auto SPELL Property WandSpellIceObj Auto SPELL Property WandSpellLightningObj Auto SPELL Property WandSpellAvadaObj Auto WEAPON Property wand Auto And here is the code for the second script : Scriptname fireSpell extends Form Event OnInit() RegisterForActorAction(0) EndEvent Event OnActorAction(int actionType, Actor akActor, Form source, int slot) if source==wand if (Game.GetPlayer().GetEquippedSpell(2)==WandSpellFireObj && Game.GetPlayer().GetActorValue("magicka")>=fireboltSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) fireboltSpell.RemoteCast(Game.GetPlayer(), Game.GetPlayer()) Game.GetPlayer().DamageActorValue("Magicka", fireboltSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) elseif (Game.GetPlayer().GetEquippedSpell(2)==WandSpellIceObj && Game.GetPlayer().GetActorValue("magicka")>=iceSpikeSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) iceSpikeSpell.RemoteCast(Game.GetPlayer(), Game.GetPlayer()) Game.GetPlayer().DamageActorValue("Magicka", iceSpikeSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) elseif (Game.GetPlayer().GetEquippedSpell(2)==WandSpellLightningObj && Game.GetPlayer().GetActorValue("magicka")>=lightningBoltSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) lightningBoltSpell.RemoteCast(Game.GetPlayer(), Game.GetPlayer()) Game.GetPlayer().DamageActorValue("Magicka", lightningBoltSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) elseif (Game.GetPlayer().GetEquippedSpell(2)==WandSpellAvadaObj && Game.GetPlayer().GetActorValue("magicka")>=killingavadaSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) killingavadaSpell.RemoteCast(Game.GetPlayer(), Game.GetPlayer()) Game.GetPlayer().DamageActorValue("Magicka", killingavadaSpell.GetEffectiveMagickaCost(Game.GetPlayer())/2) elseif (Game.GetPlayer().GetEquippedSpell(2)!=WandSpellAvadaObj && (Game.GetPlayer().GetEquippedSpell(2)!=WandSpellLightningObj && Game.GetPlayer().GetEquippedSpell(2)!=WandSpellIceObj && Game.GetPlayer().GetEquippedSpell(2)!=WandSpellFireObj) Debug.MessageBox("Focus on a spell!") endIf endIf EndEvent WEAPON Property wand Auto SPELL Property WandSpellFireObj Auto SPELL Property fireboltSpell Auto SPELL Property iceSpikeSpell Auto SPELL Property WandSpellIceObj Auto SPELL Property lightningBoltSpell Auto SPELL Property WandSpellLightningObj Auto SPELL Property killingavadaSpell Auto SPELL Property WandSpellAvadaObj Auto SPELL Property WandAbilityWardObj Auto Now the thing is, that I can't compile them for some reason I don't understand. There is also a thing I forgot to mention before. The only lines I have added to the scripts are the ones dealing with WandSpellAvadaObj and killingavadaSpell. This means, that before I added the avada stuff to the script, it was already compiled and working. That's why I don't get it why it won't compile it. The IDs of the added spells ( WandSpellAvada and killingavada) are correct, they exists. I'm gonna post the error the CK gave me so maybe someone can understand it better and will be able to help me. So here is the error for the first script : Starting 1 compile threads for 1 files... Compiling "fireSpell"... C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\fireSpell.psc(26,247): missing RPAREN at '\\r\\n' No output generated for fireSpell.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on fireSpell.psc And for the second script : Starting 1 compile threads for 1 files... Compiling "addRemoveSpells"... C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(0,0): unable to locate script ObjectReference C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(3,23): unknown type actor C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(4,16): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(4,21): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(5,4): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(5,9): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(5,21): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(5,49): cannot compare a none to a bool (cast missing or types unrelated) C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(6,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(6,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(6,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(7,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(7,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(7,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(8,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(8,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(8,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(9,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(9,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(9,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(10,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(10,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(10,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(15,25): unknown type actor C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(16,16): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(16,21): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,5): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,10): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,22): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,51): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,56): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(17,68): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(18,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(18,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(18,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(19,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(19,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(19,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(20,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(20,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(20,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(21,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(21,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(21,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(22,2): variable Game is undefined C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(22,7): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(22,19): none is not a known user-defined type C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(27,15): unknown type spell C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(29,15): unknown type spell C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(31,15): unknown type spell C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(33,15): unknown type spell C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(35,15): unknown type spell C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\addRemoveSpells.psc(37,16): unknown type weapon No output generated for addRemoveSpells.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on addRemoveSpells.psc Please help me guys I would really appreciate it.
×
×
  • Create New...