Author Topic: Is it possible to entirely remove the reload feature from NWN?  (Read 2366 times)

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0


               

So that if the player dies there is only the option to respawn a limited number of times; after which, the game ends (back to the title screen) and they must try again, from scratch?



               
               

               
            

Legacy_tobtor

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #1 on: June 19, 2016, 11:20:46 am »


               

But wouldn't the player then just quit and reload from the menu/title screen?


 


Or are you suggesting banning saving altogether? How about crashes etc? I think it will be impossible to separate crashes and logging out to take a break, from quitting to being dead.



               
               

               
            

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #2 on: June 19, 2016, 11:36:52 am »


               

NWN is pretty stable for me, so I'm not too worried about enforcing this. Lots of buggy games have this as an option; f.e, Temple of Elemental Evil.


 


I'm no expert, but I seem to recall reading somewhere that it's possible for a builder to corrupt any save the player makes?


 


Anyway, maybe there is a more elegant way to remove saving/loading from the game?



               
               

               
            

Legacy_icywind1980

  • Hero Member
  • *****
  • Posts: 546
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #3 on: June 19, 2016, 11:41:03 am »


               

If this is for a single player mod please document the changes accordingly so people know what they're getting into, before giving it a try.



               
               

               
            

Legacy_Asymmetric

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #4 on: June 19, 2016, 12:05:21 pm »


               

The death screen can be customized to remove the respawn button. You could count the number of deaths and simply don't show it when the number exceeds a maximum.


I don't think you can prevent saving, but you can prevent reloading... kind of. There is no clean way to do this, but it could be achieved by scripting and using the database. I'd do the following:


  • In the starting area of the module generate a unique ID (some long random number will do). This will be unique for each session or play-through (i.e same across multiple saves)

  • The ID needs to be saved on the module (or alternatively on the player character) as a local variable. (SetLocalInt)

  • In the database you need to create a entry: ID = number of deaths. (SetCampaignInt)

  • Each time a player dies increment the number of deaths and save it in the database

  • When the player attempts to reload a previous save, check the number of saves in the database for this session. If it exceeds your maximum, just kill him or teleport him into a separate area where he can't do anything.

This way the player can save and reload normally as long as he hasn't reached the max number of deaths. He can also start a new game with the same character because a new ID will be assigned in the starting area.



               
               

               
            

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #5 on: June 19, 2016, 12:51:32 pm »


               

Thank you so much for the detailed response.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #6 on: June 19, 2016, 02:02:03 pm »


               

The only way is to host such module as multiplayer server.



               
               

               
            

Legacy_KMdS!

  • Sr. Member
  • ****
  • Posts: 364
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #7 on: June 19, 2016, 04:14:07 pm »


               

I can see Assymetrics idea working for a single player mod....as long as the user doesn't modify code to nerf it up.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #8 on: June 19, 2016, 04:53:41 pm »


               

or delete database



               
               

               


                     Modifié par Shadooow, 19 juin 2016 - 04:20 .
                     
                  


            

Legacy_Asymmetric

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #9 on: June 19, 2016, 09:01:38 pm »


               

For multiplayer modules you would want to create an ID for each player (or else the deaths would be shared between players), for PWs you need a different solution, but saving/loading isn't even a problem there.


 


Of course one could delete the database or change the scripts in the module. But that's basically cheating and in the end it would be easier to just use the dm_god console command.



               
               

               
            

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #10 on: June 20, 2016, 01:23:30 am »


               

Yeah, one can't control what a cheater does with a file manager or the console, I guess.



               
               

               
            

Legacy_KMdS!

  • Sr. Member
  • ****
  • Posts: 364
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #11 on: June 20, 2016, 03:25:21 pm »


               

Exactly under what circumstances do you want this performed? Is this for a mod your making, and is it a multiplayer, or single player mod? Anything other info  you can provide would help us give you a better answer. It is definitely doable, but via different means for different goals.



               
               

               
            

Legacy_Gregor Wyrmbane

  • Sr. Member
  • ****
  • Posts: 324
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #12 on: June 20, 2016, 03:27:04 pm »


               


Yeah, one can't control what a cheater does with a file manager or the console, I guess.




 


Yes, and there's a very good reason for that.


 


Once one downloads a module from the internet that some other one has posted there to be downloaded, or buys a copy of the original game, that copy of the module or game becomes the property of the one who downloaded it and they can do what they want with it. Which is precisely what the ones who created the game, including the Aurora Tool set, intended.


 


It is impossible, by the definition of the word "cheater", for someone to cheat themselves. When one is playing a single player game, there is no one else for one to cheat. The reason the ones who created the game included the tool set and the capability to use the console commands is so each individual who plays the game may modify it to suit their own pleasure. After all, the purpose of playing games is to have fun. Not everyone agrees on what that entails.


 


For those who enjoy "controlling" how other individuals play this particular game, that is what PW's and private DM run multi player sessions are for.


               
               

               
            

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #13 on: June 20, 2016, 03:34:24 pm »


               

Oh, gawd. Not this trollish schtick again.


 


Thank god for the ignore feature.



               
               

               
            

Legacy_Lilura

  • Full Member
  • ***
  • Posts: 233
  • Karma: +0/-0
Is it possible to entirely remove the reload feature from NWN?
« Reply #14 on: June 20, 2016, 03:48:17 pm »


               


Is this for a mod your making, and is it a multiplayer, or single player mod?




 


Nah, it's just curiosity for single-player mode.