jbezorg Posted July 29, 2012 Posted July 29, 2012 Okay. I'm a noob. I'm tweaking MiniLoversAlternative adding gender detection for position and I keep running into this error. "none is not a known user-defined type" I assume this is the script's equivalent to null but finding an answer to solve this has been elusive.
jbezorg Posted July 30, 2012 Author Posted July 30, 2012 I'll take guesses now. The only advice I've found so far is to reinstall the Creation Kit.
jbezorg Posted August 2, 2012 Author Posted August 2, 2012 can you show us the script in question? ( LOL... I just tried compiling to include the error output and it worked. The only thing I've done recently was get the new SKSE as I had the previous version ) Thanks Doc. Everything I've read said it was a compiler config error so I didn't upload the script. Line 49-80 Event OnEffectStart(Actor akTarget' date=' Actor akCaster) target = akTarget caster = akCaster target.AddItem(MLAIsSexCoin, 1) ; **** MODIFY if (MLAUndressSwitch.getValue()) target.unequipItemSlot(32) target.unequipItemSlot(39) target.unequipItemSlot(46) target.unequipItem(target.getEquippedWeapon()) caster.unequipItemSlot(32) caster.unequipItemSlot(39) caster.unequipItemSlot(46) endIf if (target == Game.getPlayer()) [b'] targetLeadsPosition = True[/b] NPC = caster MLAQuest.reversePosition = 1 - MLAQuest.reversePosition else NPC = target endIf ; **** /MODIFY MLAWaitQuest.Start() StartPlayIdle() RegisterForSingleUpdate(0) EndEvent Just simply changing targetLeadsPosition = True to targetLeadsPosition = False and trying to compile results in the following. Full Script Scriptname MLARapeEffectScript extends activemagiceffect MLAQuestScript Property MLAQuest Auto Quest Property MLAWaitQuest Auto MiscObject Property MLAIsSexCoin Auto ; **** MODIFY Sound Property ITMPotionUseSM Auto Spell Property MLARapeCalm Auto Spell Property MarriageRested Auto Sound Property MLASloppySD Auto Spell Property MLASexualInfluence Auto Topic Property DialogueGenericHello Auto Spell Property DA08SelfPacify Auto GlobalVariable Property MLAUndressSwitch auto GlobalVariable Property MLAPlayerTalkSwitch auto GlobalVariable Property MLABuffSwitch auto GlobalVariable Property MLAPimpSwitch auto FormList Property MLALoversList auto FormList Property MLAFactionList auto Message Property MLASubmitMessageMale auto Message Property MLASubmitMessageFemale auto Message Property MLACohabitationMessage auto Message Property MLAOwnerChangeMessage auto ; **** /MODIFY Actor target Actor caster int idleStage = 1 ; **** MODIFY Actor NPC = None bool targetLeadsPosition = True int SoundCounter = 0 int VoiceCounter = 0 ; **** /MODIFY bool stageKeyFlag = False bool reverseKeyFlag = False bool idleSelectKeyFlag = False Event OnEffectStart(Actor akTarget, Actor akCaster) target = akTarget caster = akCaster target.AddItem(MLAIsSexCoin, 1) ; **** MODIFY if (MLAUndressSwitch.getValue()) target.unequipItemSlot(32) target.unequipItemSlot(39) target.unequipItemSlot(46) target.unequipItem(target.getEquippedWeapon()) caster.unequipItemSlot(32) caster.unequipItemSlot(39) caster.unequipItemSlot(46) endIf if (target == Game.getPlayer()) targetLeadsPosition = False NPC = caster MLAQuest.reversePosition = 1 - MLAQuest.reversePosition else NPC = target endIf ; **** /MODIFY MLAWaitQuest.Start() StartPlayIdle() RegisterForSingleUpdate(0) EndEvent Event OnUpdate() int reverseAngle = 0 If (MLAQuest.reversePosition) reverseAngle = 180 EndIf ; **** MODIFY if (targetLeadsPosition) float x = (100.0 + MLAQuest.OffsetX) * math.sin(target.GetAngleZ() + reverseAngle) float y = (100.0 + MLAQuest.OffsetX) * math.cos(target.GetAngleZ() + reverseAngle) caster.MoveTo(target, -x, -y, 0 + MLAQuest.OffsetZ) else float x = (100.0 + MLAQuest.OffsetX) * math.sin(caster.GetAngleZ() + reverseAngle) float y = (100.0 + MLAQuest.OffsetX) * math.cos(caster.GetAngleZ() + reverseAngle) target.MoveTo(caster, x, y, 0 + MLAQuest.OffsetZ) endIf ; **** /MODIFY ; **** MODIFY SoundCounter += idleStage*idleStage if (SoundCounter >= 16) MLASloppySD.play(target) MLASloppySD.play(caster) SoundCounter = 0 if (MLAQuest.reversePosition != targetLeadsPosition) if (Utility.randomInt(1,4) == 1) Actor player = caster Actor NP = target if (target == Game.getPlayer()) player = target NP = caster endIf MLASexualInfluence.cast(NP, player) endIf else if (MLAPlayerTalkSwitch.getValue()) if (Utility.randomInt(1,8) == 1) Actor player = caster Actor NP = target if (target == Game.getPlayer()) player = target NP = caster endIf player.say(DialogueGenericHello) endIf endIf endIf endIf If (Input.IsKeyPressed(MLAQuest.UnconsciousKey)) if (NPC.isUnconscious()) NPC.setUnconscious(false) else NPC.setUnconscious(true) endIf endIf ; **** /MODIFY If (Input.IsKeyPressed(MLAQuest.IdleSelectKey) && idleSelectKeyFlag == False) idleSelectKeyFlag = True ; **** MODIFY bool wasUnconscious = false if (NPC.isUnconscious()) NPC.setUnconscious(false) wasUnconscious = true endIf ; **** /MODIFY If (Input.IsKeyPressed(MLAQuest.ShiftKey)) MLAQuest.idleNum -= 1 If (MLAQuest.idleNum < 0) MLAQuest.idleNum = 50 - 1 EndIf Else MLAQuest.idleNum += 1 If (MLAQuest.idleNum >= 50) MLAQuest.idleNum = 0 EndIf EndIf Debug.Notification("Motion Number " + MLAQuest.idleNum) StartPlayIdle() ; **** MODIFY if (wasUnconscious) NPC.setUnconscious(true) endIf ; **** /MODIFY ElseIf (Input.IsKeyPressed(MLAQuest.IdleSelectKey) == False && idleSelectKeyFlag) idleSelectKeyFlag = False EndIf If (Input.IsKeyPressed(MLAQuest.OffsetXKey)) If (Input.IsKeyPressed(MLAQuest.ShiftKey)) MLAQuest.OffsetX -= 0.5 Else MLAQuest.OffsetX += 0.5 EndIf EndIf If (Input.IsKeyPressed(MLAQuest.OffsetZKey)) If (Input.IsKeyPressed(MLAQuest.ShiftKey)) MLAQuest.OffsetZ -= 0.5 Else MLAQuest.OffsetZ += 0.5 EndIf EndIf If (Input.IsKeyPressed(MLAQuest.StageKey) && stageKeyFlag == False) stageKeyFlag = True ; **** MODIFY bool wasUnconscious = false if (NPC.isUnconscious()) NPC.setUnconscious(false) wasUnconscious = true endIf ; **** /MODIFY If (Input.IsKeyPressed(MLAQuest.ShiftKey)) If (idleStage == 0) idleStage = 3 ElseIf (idleStage == 2 || idleStage ==3) idleStage -= 1 EndIf Else If (idleStage == 3) idleStage = 0 ElseIf (idleStage == 1 || idleStage == 2) idleStage += 1 ElseIf (idleStage == 0) self.Dispel() EndIf EndIf StartPlayIdle() ; **** MODIFY If (wasUnconscious) NPC.setUnconscious(true) endIf if (idleStage == 0) int spermCounter = 0 float interval = Utility.RandomFloat(0.05, 0.6) while (interval < 2.0) ITMPotionUseSM.play(caster) spermCounter += 1 Utility.wait(interval) interval += Utility.RandomFloat(0.05, 0.6) endWhile NPC.setUnconscious(false) if (MLABuffSwitch.getValue()) if (targetLeadsPosition) DA08SelfPacify.cast(caster, caster) else if (MLAPimpSwitch.getValue() && !targetLeadsPosition) if (!MLALoversList.hasForm(target)) if (spermCounter > 6) int belongings = target.getNumItems() Form nthItem = None while (belongings > 0) belongings -= 1 nthItem = NPC.getNthForm(belongings) if (nthItem.getType() == 45 && caster.getItemCount(nthItem) == 0) caster.additem(nthItem, 1) endIf endWhile if (MLALoversList.getSize() >= 20) MLALoversList.removeAddedForm(MLALoversList.getAt(0)) endIf MLALoversList.addForm(target) if (target.getLeveledActorBase().getSex() == 1) MLASubmitMessageFemale.show() else MLASubmitMessageMale.show() endIf occupyCell() endIf else MLALoversList.removeAddedForm(target) MLALoversList.addForm(target) caster.addItem(Game.getForm(15), target.getGoldAmount()*(0.25*spermCounter) as int) endIf endIf target.addSpell(MLARapeCalm) caster.addSpell(MarriageRested) endIf endIf if (targetLeadsPosition) MLAQuest.reversePosition = 1 - MLAQuest.reversePosition endIf self.Dispel() endIf ; **** /MODIFY ElseIf (Input.IsKeyPressed(MLAQuest.StageKey) == False && stageKeyFlag) stageKeyFlag = False EndIf If (Input.IsKeyPressed(MLAQuest.ReverseKey) && reverseKeyFlag == False) reverseKeyFlag = True ; **** MODIFY bool wasUnconscious = false if (NPC.isUnconscious()) NPC.setUnconscious(false) wasUnconscious = true endIf ; **** /MODIFY If (MLAQuest.reversePosition) MLAQuest.reversePosition = False Else MLAQuest.reversePosition = True EndIf StartPlayIdle() ; **** MODIFY if (wasUnconscious) NPC.setUnconscious(true) endIf ; **** /MODIFY ElseIf (Input.IsKeyPressed(MLAQuest.ReverseKey) == False && reverseKeyFlag) reverseKeyFlag = False EndIf RegisterForSingleUpdate(0) EndEvent Event OnEffectFinish(Actor akTarget, Actor akCaster) caster.PushActorAway(target, 1.0) target.PushActorAway(caster, 1.0) target.RemoveItem(MLAIsSexCoin, target.GetItemCount(MLAIsSexCoin)) MLAWaitQuest.Stop() EndEvent Function StartPlayIdle() Idle idleDef Idle idleOff If (idleStage == 0) idleDef = MLAQuest.idleDef0[MLAQuest.idleNum] idleOff = MLAQuest.idleOff0[MLAQuest.idleNum] ElseIf (idleStage == 1) idleDef = MLAQuest.idleDef1[MLAQuest.idleNum] idleOff = MLAQuest.idleOff1[MLAQuest.idleNum] ElseIf (idleStage == 2) idleDef = MLAQuest.idleDef2[MLAQuest.idleNum] idleOff = MLAQuest.idleOff2[MLAQuest.idleNum] ElseIf (idleStage == 3) idleDef = MLAQuest.idleDef3[MLAQuest.idleNum] idleOff = MLAQuest.idleOff3[MLAQuest.idleNum] EndIf If (MLAQuest.reversePosition) target.PlayIdle(idleOff) caster.PlayIdle(idleDef) Else target.PlayIdle(idleDef) caster.PlayIdle(idleOff) EndIf EndFunction Function occupyCell() Cell theRoom = target.getParentCell() if (theRoom.isInterior()) ActorBase actorOwner = theRoom.getActorOwner() Faction factionOwner = theRoom.getFactionOwner() if (!factionOwner || !caster.isInFaction(factionOwner)) if (target.isInFaction(factionOwner)) caster.addToFaction(factionOwner) MLACohabitationMessage.show() elseIf (actorOwner == target.getActorBase()) int i = MLAFactionList.getSize() while (i > 0) i -= 1 if (target.isInFaction(MLAFactionList.getAt(i) as Faction)) Faction newFactionOwner = MLAFactionList.getAt(i) as Faction theRoom.setFactionOwner(factionOwner) caster.addToFaction(factionOwner) MLAOwnerChangeMessage.show() i = 0 endIf endWhile endIf endIf endIf endFunction Compiler Results.... LOL
DocClox Posted August 22, 2012 Posted August 22, 2012 Wow, sorry not to get back to you. It's been a bit mad. Nothing leaps out at me from that, either. Usually the error in question comes when you mess up the declaration of a variable somewhere. The compile complains about the declaration, and then when you next try to use the var it looks for its type, finds it set to "none" since the declaration was bad and gives a misleading error. But I can't see where you'd have missed the declaration there, so that's not much help. Then again, after this much time, you've probably solved it anyway.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.