Wow!! Did we luck out!

The sequel of the legendary wargame with a complete graphics and interface overhaul, major new gameplay and design features such as full naval combat modelling, improved supply handling, numerous increases to scenario parameters to better support large scenarios, and integrated PBEM++.
User avatar
Curtis Lemay
Posts: 14492
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Wow!! Did we luck out!

Post by Curtis Lemay »

I just got back from out of town and found my house had been broken into. Yet I can't find anything missing!? Most notably, they didn't take my PC. Considering that all the update code was on it, and wasn't stored anywhere else, this is sort of like a bullet just missing your head. I definitely need to find a safe place to back that stuff up soon.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Lobster
Posts: 5425
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

Re: Wow!! Did we luck out!

Post by Lobster »

Omg. You don't backup your data?!?!?!? What a noob mistake. You're fired. :lol:
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
Curtis Lemay
Posts: 14492
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Wow!! Did we luck out!

Post by Curtis Lemay »

Lobster wrote: Tue May 10, 2022 2:46 am Omg. You don't backup your data?!?!?!? What a noob mistake. You're fired. :lol:
Well, I do now. :roll:

(Put it on a thumb drive). But this was a close one.
My TOAW web site:

Bob Cross's TOAW Site
Sondergeraet
Posts: 3
Joined: Tue May 10, 2022 4:35 am

Re: Wow!! Did we luck out!

Post by Sondergeraet »

Curtis Lemay wrote: Tue May 10, 2022 12:37 am I just got back from out of town and found my house had been broken into. Yet I can't find anything missing!? Most notably, they didn't take my PC. Considering that all the update code was on it, and wasn't stored anywhere else, this is sort of like a bullet just missing your head. I definitely need to find a safe place to back that stuff up soon.
This sounds terrifying. I hope that you can feel safe again in your house. I am not sure if it is the right time to point out that a USB stick backup probably won't cut it in the long run, as you probably have bigger fishs to fry right now. In my experience backing up to USB media is too much work compared to a fully automatic backup to some remote server, and I tend to forget backups if they are not automated ;)
User avatar
Zovs
Posts: 9162
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

Re: Wow!! Did we luck out!

Post by Zovs »

Use source control like github you can create a free account and make a private (only you or who you choose to a access) repo or public repo (default). It’s the only way to go.

All software development projects (especially games) should be under source control.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
sPzAbt653
Posts: 10039
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

Re: Wow!! Did we luck out!

Post by sPzAbt653 »

Maybe get some of those cameras for security. I keep putting it off myself, mostly because there are many to pick from, but also because they are a bit pricey [which I admit is a dumbass reason, but I am old and grumpy].
biddrafter2
Posts: 74
Joined: Wed Jan 17, 2007 9:54 pm

Re: Wow!! Did we luck out!

Post by biddrafter2 »

Um.... this game isn't using source control? :? :? :? :?

This is so basic a mistake that I can't even make a snarky comment.
User avatar
Curtis Lemay
Posts: 14492
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Wow!! Did we luck out!

Post by Curtis Lemay »

Ralph was using GitHub. But now, there's only one coder left. What purpose would it serve?
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Zovs
Posts: 9162
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

Re: Wow!! Did we luck out!

Post by Zovs »

Curtis Lemay wrote: Wed May 11, 2022 2:23 am Ralph was using GitHub. But now, there's only one coder left. What purpose would it serve?
If you have to ask that question I just don’t know what to say other than the lack of professionalism and understanding how source control and software development works.

Unless you have a photographic memory and let’s say you wrote 1,000 lines of code touching 100 files and it was a total botch and broke existing functionality, how would you revert your changes without source control?

Spend several hours or days copying or replacing files from a back up source, which is mistake and error prone, or using source control do it in mere seconds with no fear of corruption or errors.

I have worked on both small and large teams and even my solo projects are under source control. So saying only one programmer is working on the code so why need source control just show lack of understanding and experience.

Its like saying to a carpenter why do you use a tool bag, I just keep all my tools in my pants and shirt pockets.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
jreebel
Posts: 52
Joined: Tue Aug 14, 2007 7:51 pm

Re: Wow!! Did we luck out!

Post by jreebel »

As a professional coder for 35 years, I never used github, but that was then and we did have serious backups. It's definitely something that would be helfpul. But if you think that's too much of a hassle, do what I do with files I can't afford to lose: just email them to yourself and leave the last half dozen or so emails in your account. That way if your house burns down, taking both computer and thumb drive with it, you're covered. Although at that point it will probably be a while until you get back to coding.
I'm trying to think, but nothing happens!
Curly Howard
User avatar
Curtis Lemay
Posts: 14492
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Re: Wow!! Did we luck out!

Post by Curtis Lemay »

Zovs wrote: Wed May 11, 2022 12:05 pm
Curtis Lemay wrote: Wed May 11, 2022 2:23 am Ralph was using GitHub. But now, there's only one coder left. What purpose would it serve?
If you have to ask that question I just don’t know what to say other than the lack of professionalism and understanding how source control and software development works.

Unless you have a photographic memory and let’s say you wrote 1,000 lines of code touching 100 files and it was a total botch and broke existing functionality, how would you revert your changes without source control?

Spend several hours or days copying or replacing files from a back up source, which is mistake and error prone, or using source control do it in mere seconds with no fear of corruption or errors.

I have worked on both small and large teams and even my solo projects are under source control. So saying only one programmer is working on the code so why need source control just show lack of understanding and experience.

Its like saying to a carpenter why do you use a tool bag, I just keep all my tools in my pants and shirt pockets.
I document the lines I add or change. But I wouldn't debug anything by ripping out 100's of lines of code. I would use the debugger to figure what the issue was.

And Ralph hasn't been gone that long. Even if I had started some sort of source control the instant I knew he was gone for good (less than a year ago), only very recent coding would have been thus affected.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Lobster
Posts: 5425
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

Re: Wow!! Did we luck out!

Post by Lobster »

Time is a nonrenewable resource. Even if you had to recreate ten lines of code it is time lost that can never be retrieved. I am someone who abhors doing the same thing twice. Every time I'm going to make a change there's a backup. At the end of a session there's a backup to dropbox and a thumb drive plus a copy is automatically mirrored on my laptop as I'm working. It can seem like a pain in the butt and/or paranoia however the consequences of not having a failproof backup is so bad there are no words to describe the pain of the loss.
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
BigDuke66
Posts: 2035
Joined: Thu Feb 01, 2001 10:00 am
Location: Terra

Re: Wow!! Did we luck out!

Post by BigDuke66 »

Can't you just go for security program like Norton that offers also some online capacity for backups?
Afaik my has 10GB of storage, isn't that enough for you?
User avatar
golden delicious
Posts: 4121
Joined: Tue Sep 05, 2000 8:00 am
Location: London, Surrey, United Kingdom

Re: Wow!! Did we luck out!

Post by golden delicious »

I would listen to the professional programmers and do it properly, you will probably find it faster in the long run.
"What did you read at university?"
"War Studies"
"War? Huh. What is it good for?"
"Absolutely nothing."
User avatar
Graymane
Posts: 584
Joined: Wed Mar 30, 2005 11:21 pm
Location: Bellevue, NE

Re: Wow!! Did we luck out!

Post by Graymane »

Learn git, you'll thank us all later. It is distributed VCS that is easy and safe to use. It isn't just about backing up your code, although it does that if you use something like github. It is also about managing changes to your code in a more organized fashion. For example, with git, it is easy to work on a branch specific to ticket #1234 and another branch for ticket #6789. You can swap branches simply. You can merge branches easily. You can pick and choose what you merge to the main branch so what goes to production is exactly what you expected and you don't pull in something else you were working on.

Also, by using tools like git bisect you can track down bugs by following the exact commit that caused it. If you are a normal programmer, you are naturally lazy and want to use tools that help you maintain your natural level of laziness. Git does that.

You can also tag your commits with comments instead of putting them all over the source code. You can then run a tool to turn those commit comments into a changelog, as another example.
A computer without COBOL and Fortran is like a piece of chocolate cake without ketchup and mustard.
User avatar
Zovs
Posts: 9162
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

Re: Wow!! Did we luck out!

Post by Zovs »

Git is easy to learn and like I said you can make private and public repos. Everything graymane says is correct even if your the only programer.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
governato
Posts: 1364
Joined: Fri May 06, 2011 4:35 pm
Location: Seattle, WA

Re: Wow!! Did we luck out!

Post by governato »

or at least use Dropbox! I never trusted thumb drives for the very important stuff.

https://www.dropbox.com/basic

It's the simplest to use, as it just automatically backs up your selected directories in the cloud. It's free up to I forgot..say 1 Gb?

That is where I keep my scenarios ;).
User avatar
golden delicious
Posts: 4121
Joined: Tue Sep 05, 2000 8:00 am
Location: London, Surrey, United Kingdom

Re: Wow!! Did we luck out!

Post by golden delicious »

governato wrote: Fri May 13, 2022 1:23 am or at least use Dropbox! I never trusted thumb drives for the very important stuff.

https://www.dropbox.com/basic

It's the simplest to use, as it just automatically backs up your selected directories in the cloud. It's free up to I forgot..say 1 Gb?

That is where I keep my scenarios ;).
I switched to Google Drive a while back because you get a whole lot more storage free (15GB I think)? 1GB is plenty for TOAW but when you have a young child you produce an awful lot of photos and videos that you don't want to lose.
"What did you read at university?"
"War Studies"
"War? Huh. What is it good for?"
"Absolutely nothing."
governato
Posts: 1364
Joined: Fri May 06, 2011 4:35 pm
Location: Seattle, WA

Re: Wow!! Did we luck out!

Post by governato »

I have both! Yes GD has more space BUT I liked dropbox because it required no actions on my part. you have a directory with all your files and they get automatically saved, so Dropbox is great for disaster prevention...
User avatar
Zovs
Posts: 9162
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

Re: Wow!! Did we luck out!

Post by Zovs »

Source control is only partially about disaster recovery. It’s more about branching, merging, and stashing code changes, and also distribution and data assurance.

Here is a basic overview and for any software development and especially a game why it needs to be under source control.

https://git-scm.com/video/what-is-version-control
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
Post Reply

Return to “The Operational Art of War IV”