Author Topic: Feature: Save console history  (Read 5150 times)

Cobo

  • Autococker
  • Posts: 1362
Feature: Save console history
« on: January 05, 2008, 06:40:09 PM »
Save the console history so every time you load DP  the commands you used last are there, so all you have to do is press the up key.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: Save console history
« Reply #1 on: January 05, 2008, 07:27:15 PM »
http://dplogin.com/dplogin/featurevote/feature.php?id=10017

+1 for that.  If I hadn't been busy with other things, this would already been implemented.  Really useful when testing stuff that involves closing the game each time.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: Save console history
« Reply #2 on: August 29, 2012, 11:04:39 PM »
This should be a pretty easy one to implement for anybody looking to help out...

Narga

  • 68 Carbine
  • Posts: 401
Re: Feature: Save console history
« Reply #3 on: August 30, 2012, 10:35:49 PM »
This should be a pretty easy one to implement for anybody looking to help out...

I have Visual C++ 2010 but this game appears to have been made using Visual C++ 6.0. I heard that most programs made in Visual C++ 6.0 cannot be upgraded to Visual C++ 2010.

Is it possible to manually add the source, header, and resource files into a blank Visual C++ 2010 project and build it without breaking my computer? Would I need to manually add other files as well?

Foxhound

  • Autococker
  • Posts: 952
Re: Feature: Save console history
« Reply #4 on: August 31, 2012, 01:33:33 AM »
Would this affect things like spec 1? would 1 always be spec'd? I think this might be trickier than it seems?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Feature: Save console history
« Reply #5 on: August 31, 2012, 03:33:08 AM »
I have Visual C++ 2010 but this game appears to have been made using Visual C++ 6.0. I heard that most programs made in Visual C++ 6.0 cannot be upgraded to Visual C++ 2010.

Is it possible to manually add the source, header, and resource files into a blank Visual C++ 2010 project and build it without breaking my computer? Would I need to manually add other files as well?

wot. you using the latest svn source? think it's got a vs2005 project you can upgrade.

Would this affect things like spec 1? would 1 always be spec'd? I think this might be trickier than it seems?

nah, it just saves previously entered commands so you can quit the game, restart and scroll up through what you typed earlier. doesn't actually save the effects of the commands. it's like google search history.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Feature: Save console history
« Reply #6 on: August 31, 2012, 06:13:19 AM »
Only the previously entered commands or all console messages (joined server, switched team, eliminated,...)? Or with an option to change between it?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Feature: Save console history
« Reply #7 on: August 31, 2012, 10:05:36 AM »
Just commands. All you need to do is store the array of 32 console lines and the current line index, and save/load them when quitting/opening the game. I tried to do it once, but inevitably messed something up in the process.

Narga

  • 68 Carbine
  • Posts: 401
Re: Feature: Save console history
« Reply #8 on: August 31, 2012, 10:04:09 PM »
wot. you using the latest svn source? think it's got a vs2005 project you can upgrade.

Where can I get it?

Edit:  I just realised that the Source Forge website for Paintball 2 comes with source code files with a Visual C++ 2008 Express solution, but the rest of the project files are Visual C++ 6.0 for some reason.
« Last Edit: September 01, 2012, 02:02:44 PM by Narga »

Narga

  • 68 Carbine
  • Posts: 401
Re: Feature: Save console history
« Reply #9 on: September 10, 2012, 08:07:09 AM »
wot. you using the latest svn source? think it's got a vs2005 project you can upgrade.

When I build the solution, I get errors.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: Save console history
« Reply #10 on: October 03, 2012, 12:13:03 AM »
Went ahead and implemented this as it should save me time in the long run.