• Announcements

    • JoeW

      [UPDATED] Physical Megapack Disc Issues   04/16/2018

      Update 5/11/2018 We do not have any more information at this time. The last we spoke to 505 indicated that the discs should be ready very soon. We will likely have more information next week; hopefully with full explanation of when and how to get new discs.    Updated: 4/27/2018

      On April 17th, the Don't Starve Megapack was released. Almost immediately, it was discovered that the wrong content was printed on the PS4 retail version of Don’t Starve Mega Pack (the Xbox One version is not affected). The disc contained Don't Starve Together, but was without Don't Starve, Reign of Giants and Shipwrecked. As soon as we confirmed the problem we contacted our retail publisher to find out how this happened and what could be done. It's taken some time to get this far, but this is all the information we have at this time. The current status of the issue is as follows: New copies are currently in print and will be on shelves ASAP, hopefully within a few weeks.  When the new discs arrive in stores, players who already purchased misprinted discs will be able to exchange the disc for a new one in store. Details will follow as we figure out the exact timing, the procedures with specific retailers and what the exchange will entail.  Players who already purchased the faulty disc previous to 4/26/2018 can now contact Klei support HERE for a Playstation Store voucher code that includes Don't Starve Together, Don't Starve, Shipwrecked and the Reign of Giants DLC that you can play now. Please specify your country as certain vouchers only work in certain regions.  New purchasers of the Megapack in store as of 4/26/2018 should be given a voucher at the time of purchase on your receipt. If you do not get a code, contact us ALL purchasers will have a path to get a new disc when they are ready. We do not have details at this time, but we are comitted to ensuring that all players get what they purchased.  We are hearing from some players that some retailers are telling players that they will not be exchanging discs. We believe this to be incorrect and that particular person or location is just misinformed. 505 has ensured us that they are doing their best to make sure these discs are being replaced for all players. We will not allow anybody to fall through the cracks here. We will buy and ship the discs ourselves if we have too.   This was our first major retail release and we're extremely disappointed that our players have been let down with their purchase of the Don't Starve Megapack. We're doing our best to make sure this issue gets resolved as quickly as possible. Thanks everybody for your support and patience. We'll keep you updated.    UPDATE: (4/26/2018) We are now ready to send out vouchers to players who purchased the physical version of the Don't Starve Megapack - These codes will allow players to download and play Don't Starve and DLC as well as Don't Starve Together To get a voucher players can contact as at our support site: http://support.kleientertainment.com/customer/portal/emails/new  For the subject, choose "PS4 Megapack" and fill in the form and we'll get you fixed up as soon as possible.  We will require a picture of your receipt, your Klei account ID and the region you are located in (so we can give you the proper voucher).  UPDATE: (4/24/2018) Earlier this week, we discovered that the wrong content was printed on the PS4 retail version of Don’t Starve Mega Pack (the Xbox One version is not affected). It’s a really unfortunate situation and we’ve been working hard with 505 to resolve this as soon as possible. Below is the latest information: New copies are currently in print and will be on shelves ASAP, hopefully within a few weeks. When the new discs arrive in stores, players who already purchased misprinted discs will be able to exchange the disc for a new one in store. Details will follow as we figure out the exact timing, the procedures with specific retailers and what the exchange will entail.  Players who already purchased the faulty disc will also be able to contact Klei support for a voucher code that includes Don't Starve, Shipwrecked and the Reign of Giants DLC until the new disc is ready. Please specify your country as certain vouchers only work in certain regions.  We will have more details when they become available including details on contacting us and what information we might need.  Once again, thanks to everybody for their patience while we work this out. For questions or concerns, the forum discussion can be found below:   

2 Screenshots

About This File

A few improvements to the console.

On Steam: http://steamcommunity.com/sharedfiles/filedetails/?id=173892495

Major features

  • Console log is scrollable
  • Console log no longer prints file/line number information (but log.txt still does)
  • Console keeps focus when you'd expect it to
  • Console doesn't close after each line entered
  • Added basic CTRL+A select all support (hitting backspace after CTRL+A will delete all the text)
  • Added support for multi-line inputs
  • Many general useability improvements, bugs that have been fixed, and small but useful tweaks

Minor features (the rest)

  • Console always runs the "consolecommands" script when it is opened (no more having to do RunScript("consolecommands"))
  • Console log gets hidden whenever the console closes
  • Console history ignores consecutive duplicate lines
  • Console log and console input text is slightly smaller
  • Console log has word wrap enabled
  • Fixed console history not properly resetting when you move up through the history and then back down to the start
  • Modified the c_select command so that it will set the debug entity to whatever is under the mouse if it is called with no parameter (default c_select requires a parameter)
  • Added c_nextday() command as a shortcut for GetClock():MakeNextDay()
  • Console will automatically print back the value of any variable you enter (for example, if you do "test = 1" and then just "test" it will print back "1")
  • If you use "return" it will print back the value that is returned (for example, "return GetPlayer()" would print something like "100009 - wilson"); basically return can be used as somewhat of an alias of print
  • Console prints back any command you give it with "> " prefixed in front of it
  • Console has a transparent black background
  • Console can print multiple return values
  • Console will auto-execute console commands (example: "c_nextday" would translate to "return c_nextday()")
  • If the first character of an inputted line is '=', then it will be translated to 'return ' (example: "=test" becomes "return test")
  • Better, more informative error handling for inputted lines

Things that are not currently possible with Lua:

  • Moving the text input cursor (for example, moving the cursor based on mouse clicks)
  • Any sort of real text selection
  • Copy/paste support

Get involved:


What's New in Version 1.3.1   See changelog

Released

  • Bumped API version to 6
  • Made the new CTRL+V paste support enabled by default



User Feedback

Recommended Comments

Nice mod! The only thing I would change is the font size. On my end at least, it's about twice as small as the original size. Rather hard to read on a small screen when you play windowed.

Share this comment


Link to comment
Share on other sites

Nice mod! The only thing I would change is the font size. On my end at least, it's about twice as small as the original size. Rather hard to read on a small screen when you play windowed.

 

Thanks. Yeah, I realized that the font size might not work for everyone's resolution. You can disable it by changing ENABLE_SMALLER_FONTS to false in modmain.lua.

 

Got a bugfix update ready that I'll upload in a few minutes.

Share this comment


Link to comment
Share on other sites

Good stuff! Was wondering: Is it possible to wedge a _G lookup in the code before the input gets executed so that we can add our own stuff as real console commands instead of having an interactive Lua mode? For example typing c_nextday instead of c_nextday() and the code searches _G['c_nextday'] first and calls it if exists, execute normally if not?

Share this comment


Link to comment
Share on other sites

Good stuff! Was wondering: Is it possible to wedge a _G lookup in the code before the input gets executed so that we can add our own stuff as real console commands instead of having an interactive Lua mode? For example typing c_nextday instead of c_nextday() and the code searches _G['c_nextday'] first and calls it if exists, execute normally if not?

 

I'll look into that.

Share this comment


Link to comment
Share on other sites

I'll look into that.

If you're going to do that, put an option to disable it, as it breaks the semantics of the Lua language.

But anyway, great mod. These improvements are much in need. I just have a few suggestions/requests:

  • Instead of trying to add a "return " prefix when you get the "attempt to call a nil value" error, which may as well be a real error, have you considered doing what the standard Lua interactive Lua interpreter does? It checks the line to see if "=" is its first character, and if so replaces it with "return " (it relly replaces it, even in the history). That way you have both complete control over what you get to print and you get syntactic convenience, writing things like "= a" to print a variable a, or "= foo()" to print the return values from foo.
  • Have you considered adding support for printing multiple return values? To do that, you'd wrap the pcall(loadstring(...)) call in a table, i.e. {pcall(loadstring(...))}, checking the first element of this table as the status variable and printing the rest through

    nolineprint( select(2, unpack(the_table_variable)) )
  • Could you make things more modmain-based? Doing a diff of your overridings agains the standard game files, I saw this is definitely possible. It makes sense to override consolescreen, since you're implementing a new screen that may not benefit from vanilla changes in this file. But I think the TextEdit widget should definitely be patched through modmain.
  • What about a real configuration file, that doesn't need to be replaced on mod updates?
Finally, have you thought about opening this project up as a collaboration, since this is quite a handy tool for basically everyone? If doing so, I could certainly help with what I asked/suggested above.
  • Like 1

Share this comment


Link to comment
Share on other sites

Definitely, simplex. This mod started out of frustration with the console (and without much intention of releasing it), so I did it really quickly and without much thought put into compatibility/overwriting/configuration.

I've started a Github repo for it: https://github.com/squeek502/Better-Console

Collaboration thread: http://forums.kleientertainment.com/index.php?/topic/27119-better-console-collaboration-thread/

Share this comment


Link to comment
Share on other sites

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