Indigo Rose Software

Go Back   Indigo Rose Software Forums > TrueUpdate 3.5 > TrueUpdate 3.5 FAQ

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2008
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
What server was actually used by the client?

Question

I have multiple servers set up in my True Update project file. The problem is that I need to know what server was used by the client to get the server files. I want my server script to then download the patch/install file from the correct server.

Answer

1) Go to Client Screens -> Download Server Script -> On Start -> Line 146:

Look for this block of code
Code:
-- Break out of this loop if we succeeded
if(screen_globals.GotServerFiles) then
break;
end
Change to this:

Code:
-- Break out of this loop if we succeeded
if(screen_globals.GotServerFiles) then
ServerUsed = ServerName;
break;
end
2) Then go to Server Script -> Line 10-15:

Code:
if ServerUsed == "Server1" then
-- Server1 was used
g_SourceURL = "http://Server1/patch.exe";
else
-- Server2 was used
g_SourceURL = "http://Server2/patch.exe";
end
Of course this if statement could be expanded if you have more than 2 servers set up.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to display Client variable in Server Dialog.Message acedougk TrueUpdate 2.0 1 03-02-2006 09:04 AM
Confused over updating client server file John Fligg TrueUpdate 2.0 3 09-14-2005 08:31 PM
Client & Server Communication Elleah TrueUpdate 2.0 11 06-02-2005 08:09 PM
Upload from client to server Ninj TrueUpdate 2.0 3 02-24-2005 07:20 PM
Permissions Required On Web Server For Client Access David Ferguson TrueUpdate 1.0 5 12-19-2003 08:41 PM


All times are GMT -6. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software