Jump to content
  • We need you!

    You must register to discover all the features of our community!

Cache chat messages

Recommended Posts

Someone asked me for cache chat messages. Here is the release




lastSentenceStack = []
lastSentencePos = 0



In def Open(self): add:

		if len(constInfo.lastSentenceStack) > 0:
			constInfo.lastSentencePos = 0




		self.lastSentenceStack = []
		self.lastSentencePos = 0




Replace with:





Replace with:



That's all, enjoy ;)

  • Love 4
Link to post
  • 2 weeks later...
Posted (edited)

Why you reset the position in stack to 0 on game.py ?

This will reset the chat message to 32 messages back (if the stack is full, first message you typed anyway) and a user actualy need his last message, not 32 messages ago message.

Edited by Johnny69 (see edit history)
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.