Pellape Posted July 18, 2022 Author Share Posted July 18, 2022 (edited) IsharaMeradin!!! :D I do feel ashamed now really... You are so right about globals, at least in Skyrim and I was so bloody wrong that I am very very ashamed right now :D Lets me explain what I am thinking right now and also about what I really mean by this statement, well more in detail. I made a lot of tests today with Booleans, ints, floats, Globalvalues, shorts, longs, and god knows what, made sure all vital info ended up in the console of course. I made this conclusion 5 min ago after all testing, as I really have explored CK now, well a lot at least, and also read more in the WIKI, mainly Bethesda Wiki today, the exact one we access from CK and it is not that bad. I did find what I was looking for. So far at least. I really feel very very calm right now honestly, like I do when I play around with Oblivion CS even. Finally, the screw is not that loose any longer. :D I do feel happy right now. Damn... Well what is my conclusion then, of Globals and specially Globals in Skyrim? Well it is not the same as we use a Global in C, C++, C#, VB and so on, and what ever... The Globals there are not Unique, not that I am 100% sure of anything right now. They are not good in those codes. So what makes the Global unique in Skyrim? It is an Object in the Object window and it is NOT that in Oblivion nor Morrowind, not as far as I know but I only used one, one time as far as I can remember. I cannot swear it is so, but still, it doesn't matter really. It was not what I thought it was. My Global Object got an ID, its own personal ID even :D It got ID ... ... B201EE10 - I never knew this. Maybe it can be so it is so even in Oblvion and Morrowind as well? I do not have one single clue really and I been modding for 18 years. I feel so stupid :D I am so sorry that I am or acted like a stubbern pig honestly, or even like a bulldog :D My GF complains daily even... :wink: Well it is what it is, everything is really :D Pekka, the piggy :D That might even be my new name if I am not careful... :wink: DAMN!!!! :D This means that it does not matter if I store a value in a Global or inside a Quest, they are both Objects, with their own ID's and they are not in TES 3-4, but maybe they are? Everything has an adress in RAM, we should never forget that, but that is also low level. This is NOT low level, but I keep to forgot that as it is so easy to sometimes mix stuff up completely, for anyone. Well the script looks like this right now. I do not plan to show every script I make in this forum really, but I do now at least. I will if we need to debate some of course or share anything, that is what I like to do at least, if requested ot what ever. :D Scriptname PekSummonOriginalHorseSCR extends ActiveMagicEffect GlobalVariable Property PekToggleHorseGL Auto {GLOBAL!!!!! :( I do not like Globals really. It does not matter for this small mod honestly. ;) } ObjectReference Property PekOriginalHorseREF Auto Bool Property PekToggleHorseBool Auto Event OnEffectStart(Actor akTarget, Actor akCaster) Float PekToggleHorseLocal = PekToggleHorseGL.GetValue() If PekToggleHorseLocal == 0 PekOriginalHorseREF.moveto(akCaster) MiscUtil.PrintConsole ("Caster is: " + akCaster as String) MiscUtil.PrintConsole ("Reference is: " + PekOriginalHorseREF as String) MiscUtil.PrintConsole ("Toggle is : " + PekToggleHorseLocal as String) Debug.Notification("You Summon the Dwarvern Original Calm Horse to you") PekToggleHorseLocal = 1 Else Debug.Notification("You Send the Dwarvern Original Calm Horse to Markath Stable") MiscUtil.PrintConsole ("Toggle is : " + PekToggleHorseLocal as String) PekToggleHorseLocal = 0 EndIf PekToggleHorseGL.SetValue(PekToggleHorseLocal) MiscUtil.PrintConsole ("GLOBAL is : " + PekToggleHorseGL as String) EndEvent I did made a comment in the script, did I not? :wink: I should remove it as it is not true any longer, I guess. So now I will add the last stuff, send the Horse back to Markath. I also will play some with the magic effect, at least the color of the effect as I do think a yellow suits better than a blue, as the metal used in Dwemer object, is Yellow or Orange, well is it Bronze or Cupper, well it should be Bronze as Cupper is so damn soft. They did use Cupper tools when the built the pyramids in Egypt. Bronze was not invented, so it cannot be that bad, but it also kept the smiths busy for sure. Special overseers, protected every cupper ounce so not a single gram was stolen by anyone, so stupid really... :wink: It was treated like gold is today. Hard to imagine honestly. :wink: Well is it? Not if we could go back in time, it is not. NM. :D I am so happy. I think I can solve the rest now myself. We shall see... It is not a promise that I will though... Maybe... :wink: I must add, I have learned so MUCH the last 1-2 weeks, well a week at least right? Thanks all :D I be back soon again... :wink: ---------------------------------- I will end this with another thought that came to me earlier, from Facebook of all places. Well I sat there, watching a dialogue about TES 6 and also Starfield. Tod did mention in 1 or many interviews that some content is generated, well even Daggerfall is generated really so that is what it is, but what did he really talk about in the last Interview? Who or what is it that really generate the Bethesda games today? I got a lightning in my head, dropped something at the floor -> Dall-E 2? Can it be Dall-E 2 they are using? Elon Musk and Tod are friends. Dall-E 2 org was initiated by Elon Musk, well he has a finger or 7 fingers in the project. I never heard anyone ever say: We use this specific software to generate some landscapes in out games, ever... Have you heard it your selves? Can it be Dall-E 2? I mean what can generate 1000 or at least 900 full size planets inside a single game with variated surfaces, mountains, landscapes or what ever?Well see here if you want to know more about Dall-E and Dall-E 2 and soon we will see Dall-E 3 even. https://en.wikipedia.org/wiki/DALL-Ehttps://openai.com/dall-e-2/ Edited July 18, 2022 by Pellape Link to comment Share on other sites More sharing options...
Pellape Posted July 18, 2022 Author Share Posted July 18, 2022 (edited) One more thing about Globals. When will it really cause problems then? When? If a team make a script, or some code, each and everyone add something, most likely their own functions. If the team did not set up rules or use common rules, if 2 of them makes the same Global, they have managed to really make a very nasty bug. Doing this in C is there for dangerous and it was C I did refer to, every time we debated my thoughts about the Globals. :D It will be dangerous in any project really, if more than 1 adds stuff in to the same program, or in to the same project. Edited July 18, 2022 by Pellape Link to comment Share on other sites More sharing options...
Pellape Posted July 19, 2022 Author Share Posted July 19, 2022 (edited) Finally. IsharaMeridan. I succeeded with this, but you do have a point as it is actually easy to do something wrong here. I did not have any issues doing it, and I really do see what you mean. Lets say you do something else in Resaver, that you do by mistake or are not supposed to, then there will be an issue for sure. I did it very slowly, looked around 3-4 times before I did anything. I saw or rather noticed, that this can cause issues. I did take notes, but did I really need too? :wink: Inigo Ref, had the right values and the only thing I needed to change, was AllowHorseRiding, from false to true. :D I did mention earlier, that I could not find it in any of Inigos Follow Packages right? It was because, it was not there at all, not what I could see at least. :D But the final result is here: If I see the slightest issue with any of Inigo's Quests, or behavior, I will make a report both here and also make a bugreport to the authors and reinstall Inigo.esp and use my backup save file, no matter how far we get from here, this specific day. They where also clear about this. They do want bug reports, so I can act as a Crash test dummy here now really. :D In case this happens, I will remove that message I made with that link as well, or after Shered read it anyway really. It can easy go wrong, doing it, well making this specific edit with that tool. Next step is to give him the Dwemer Mount and get a new for my char. It is in Markath, waiting. Edited July 19, 2022 by Pellape Link to comment Share on other sites More sharing options...
Recommended Posts