*

Account

Welcome, Guest. Please login or register.
Did you miss your activation email?
April 29, 2024, 11:21:24 am

Login with username, password and session length

Resources

Recent posts

[Today at 01:55:18 am]

[April 22, 2024, 03:40:53 am]

[April 21, 2024, 12:02:54 pm]

[April 06, 2024, 02:26:25 am]

[March 08, 2024, 12:13:38 am]

[March 08, 2024, 12:13:13 am]

[March 08, 2024, 12:12:54 am]

[December 30, 2023, 08:00:58 pm]

[February 04, 2023, 11:46:41 am]

[December 25, 2022, 11:36:26 am]
Pages: 1 [2] 3 4 ... 6   Go Down
  Print  
Author Topic: EIR Replay helper tool  (Read 45322 times)
0 Members and 5 Guests are viewing this topic.
CollectiveSTLS Offline
EIR Regular
Posts: 43


« Reply #20 on: April 12, 2011, 09:09:45 am »

Using normal XP :<. And which command line do you mean, the command that opens in the helper.exe? or windows cmd.exe? I guess the former but jsut to be sure :O
Logged
CollectiveSTLS Offline
EIR Regular
Posts: 43


« Reply #21 on: April 12, 2011, 09:12:56 am »

Oh just to eb clear. When i run the exe a command promt opens with

'whoami' is not recognized as an internal or external command,
operable program or batch file.
Error! no instillation of CoH could be found!
Press any key to continue..
Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #22 on: April 12, 2011, 09:17:29 am »

OK, so I am admitting to programming quasi-laziness here.

I assumed (incorrectly) that all windows machines would have the ability to run whoami.  Not a bad assumption... just wrong.  You are running a version of XP that doesn't have whoami or doesn't allow it (not sure which).  In either case, I suspect the real fix would be to update the tool to do more work to track down the login name that you are currently using.

Let me see what I can dig up here.  In the meantime, if you know why whoami isn't on your machine, you might be able to get that work and fix it.
Logged
CollectiveSTLS Offline
EIR Regular
Posts: 43


« Reply #23 on: April 12, 2011, 09:20:10 am »

I'd hate to make more work for you, so no hurry. Tongue  I'll see what i can find out about it in the meantime.
Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #24 on: April 12, 2011, 11:30:28 am »

Try this version.

I updated the logic to use an API call instead of the whoami to get the logged in user name.

http://www.gamefront.com/files/20216372/EIRReplayHelper.zip

If this works I'll update the link in the first post for other folks.
Logged
CollectiveSTLS Offline
EIR Regular
Posts: 43


« Reply #25 on: April 12, 2011, 11:39:59 am »

interesting...

====================================================================
03\12\2011-18:38:36 - EIR Replay Helper version 2.0
03\12\2011-18:38:36 - Author: VanOwen, 4/8/2011
03\12\2011-18:38:36 - got 0 arguments
03\12\2011-18:38:36 - No arguments specified:  Copying existing EIR replay files
03\12\2011-18:38:36 - Could not get local username! Got value: **Andrew**

that is my username... but it doesn't think it's a username...
I seem to be causing all kinds of problems Tongue
Logged
TheIcelandicManiac Offline
Resident forum troll. Fucked unkn0wns mom
*
Posts: 6293


« Reply #26 on: April 12, 2011, 12:01:44 pm »

ITS ALIVE!!!!
well it works for me now even tough i did not change my user name.
Good job Owen
Logged

Quote from: Grundwaffe
Soon™
gj icelandic i am proud of u  Smiley
Sometimes its like PQ doesnt carrot all.

Work Harder
VanOwen Offline
Donator
*
Posts: 66


« Reply #27 on: April 12, 2011, 01:10:13 pm »

Wow.. thats odd.

The code should be this (you can look in the .pl file that comes with the tool):

Code:
$userName=Win32::LoginName();
  if ($userName eq "") {
      print OUT &getTimeStamp." - Error!! Could not get local username! Got value: **$userName**\n";
      die "Error! Couldn't get logged in user!\n";
    }
Whats happening here is:
1. We get the userName from the system.
2. Then we test the userName value to see if its empty. 
3. If it is empty...then we should get the error message that you saw.

The really bizarre bit is that your userName value appeared to be empty to the IF test but... had a value that it could print to you later on.  It appears to be both empty and not empty at the same time!  So... I have either managed to create quantum computing using perl or....it is one of two things:

1. I am possibly missing I that I am handling a pointer (shortcut) to the data rather then the actual data.  I doubt this is the case as I tested this logic separately and it works.
2. I compiled the tool without saving all of my changes and then gave you a version with bad mojo.

Try this version: http://www.gamefront.com/files/20216489/EIRReplayHelper.zip
Same password as before
If this fails I might need to make a debug tool to see what the heck your box is doing.
Logged
CollectiveSTLS Offline
EIR Regular
Posts: 43


« Reply #28 on: April 12, 2011, 04:49:53 pm »

Yay!, that latest upload worked fine. Thanks for getting on it and fixing it to fast Shocked
Logged
tank130 Offline
Sugar Daddy
*
Posts: 8889


« Reply #29 on: April 12, 2011, 05:09:38 pm »

Snip..  So... I have either managed to create quantum computing using perl or.... Snip

I was praying for this and had my cheque book ready....
Logged

Quote
Geez, while Wind was banned I forgot that he is, in fact, totally insufferable
I'm not going to lie Tig, 9/10 times you open your mouth, I'm overwhelmed with the urge to put my foot in it.
VanOwen Offline
Donator
*
Posts: 66


« Reply #30 on: April 12, 2011, 05:14:54 pm »

Yay!, that latest upload worked fine. Thanks for getting on it and fixing it to fast Shocked

Cool I will update the original link then.
Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #31 on: April 14, 2011, 07:44:06 pm »

This seems to be useful to folks.  Can we get it stickied?
Logged
#Freek Offline
EIR Veteran
Posts: 121


« Reply #32 on: April 26, 2011, 05:36:10 pm »

The links seem to be dead..
Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #33 on: April 27, 2011, 08:08:44 am »

The joys of free file hosting... updated the link on the first post.
Logged
TheIcelandicManiac Offline
Resident forum troll. Fucked unkn0wns mom
*
Posts: 6293


« Reply #34 on: April 27, 2011, 09:47:04 am »

Well i have been using this from time to time now and it works quite fine so keep up the good work.


Allso cant you just upload the RaR file to the forum like i allways do with the gameplay files? they are allways lower than 3-4 MB so could you not just do the same?

srsly i have probobly uploaded around 50 mbs of downloads and pics on old comments, just take a look at my old comments and you can see loads of unrelated shit.
i should get rid of them now sence most of the replays are worthless due to updates
« Last Edit: April 27, 2011, 09:51:51 am by TheIcelandicManiac » Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #35 on: April 27, 2011, 05:17:15 pm »

for some reason I can't post attachments to the board any longer.  I suppose I have been bad.
Logged
TheIcelandicManiac Offline
Resident forum troll. Fucked unkn0wns mom
*
Posts: 6293


« Reply #36 on: April 27, 2011, 05:22:20 pm »

hmmm

well if the forum mods dont want the file then here i guess you are just gonna stick to Filefront or whatever you use.


PS: it works awesomely well

Ps: for some reason it says 2011/27/3 instead of the 4thmonth

maybe some mistake adding 0 as the base month  (january)?
« Last Edit: April 27, 2011, 05:25:10 pm by TheIcelandicManiac » Logged
VanOwen Offline
Donator
*
Posts: 66


« Reply #37 on: April 27, 2011, 06:43:30 pm »

Yeah I bet I missed having to increment the month right.
Logged
TheIcelandicManiac Offline
Resident forum troll. Fucked unkn0wns mom
*
Posts: 6293


« Reply #38 on: May 20, 2011, 04:33:51 pm »

Well sence i use it quite alot for its an really handy tool if you are as lazy as i am would you mind changing the date so i dont have to do it manually?

this tool saves alot of time for you guys that are in a hurry for you only need to run it and Vola you got the Replay and SGA file in a .RaR file
Logged
Unkn0wn Offline
No longer retired
*
Posts: 18377


« Reply #39 on: May 31, 2011, 01:29:47 pm »

Stickied this for greater justice, awesome job.

What kind of other coding do you do? Smiley
« Last Edit: May 31, 2011, 01:31:20 pm by Unkn0wn » Logged
Pages: 1 [2] 3 4 ... 6   Go Up
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!
Page created in 0.053 seconds with 35 queries.