Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Beginners";
Current archive: 2010.08.27;
Download: [xml.tar.bz2];

Down

MMO Updater Find similar branches


Вэн ©   (2010-04-02 16:15) [0]

Good day, I have such a problem:
I am doing an update for one MMOS installed in our lock. network, I need to make, for example, Label1 displays the name of the updated file, in Label2 the number of updated files (how many are updated / how much is left), in Label3 the size of the current file (how many are downloaded (total) / total size of all updated files) and ProgressBar respectively worked out 100% 1st according to the size of the current file, 2nd according to the total, well, and accordingly, it should somehow check the difference of the files, if the file on the server is newer than in the client’s final directory, then it updates it, if not, then skips it. - how to implement this? This is the first question, the second question - the launch of the game goes through the batch file, even the Launcher has to start it from the batch file, can you tell me how you can implement the launch without using the bat file if you need such a plan to start "start bin32 \ name.bin -ip: 10.0.0.1. XNUMX -noweb "options? Through Winexec and ShellExecute will not work ...
===
Delphi Version: Turbo Delphi 2006
OC: Win "7U.



Dennis I. Komarov ©   (2010-04-02 16:31) [1]


> I am doing an update for one MMOS installed in our
> loc. network, I need to make so that for example Label1 is displayed
> name of the updated file, in Label2 the number of updated
> files (how many are updated / how many are left), in Label3 size
> current file (how many uploaded (total) / total size
> all updated files) and ProgressBar respectively
> 100% 1st in size of the current file, 2nd in total, well
> and accordingly it must somehow check the difference of the files,
> if the file on the server is newer than in the final directory of the client,
> then he updates it, if not, then skips it. - like this
> implement?

So what's the problem: assign a specific caption to the labels or write an updater?

> the launch of the game goes through the batch file, even Launcher launch it
> accounted for from a batch file, can tell me how to implement
> launch without using a bat file, if you need such a launch
> plan "start bin32 \ name.bin -ip: 10.0.0.1 -noweb" options?
> Through Winexec and ShellExecute will not work ...

Here the tambourine rules ...



Вэн ©   (2010-04-02 17:00) [2]

write an updater ...



Dennis I. Komarov ©   (2010-04-02 17:04) [3]


> I do an updater for one MMO installed in our lock.
> networks, I need to do to ...


> write an updater ...



Харакири   (2010-04-02 17:09) [4]

> write an updater ...

Hire a programmer.



Демо ©   (2010-04-02 19:22) [5]


> Van © (02.04.10/16/15 XNUMX:XNUMX)


Sorry, but the text 1) is absolutely unreadable 2) a lot of strange questions.
Understand what you need and ask a specific question.



Демо ©   (2010-04-02 19:24) [6]

PS. What is MMO?



Jeer ©   (2010-04-02 20:37) [7]

Deleted by moderator
Note: offtopic



Anatoly Podgoretsky ©   (2010-04-02 20:59) [8]

Deleted by moderator
Note: offtopic



Jeer ©   (2010-04-02 21:02) [9]

Deleted by moderator
Note: offtopic



Leonid Troyanovsky ©   (2010-04-02 22:13) [10]

Deleted by moderator
Note: offtopic



Jeer ©   (2010-04-02 22:39) [11]

Deleted by moderator
Note: offtopic



Германн ©   (2010-04-03 02:13) [12]

Deleted by moderator
Note: offtopic



Palladin ©   (2010-04-03 12:21) [13]


> Van © (02.04.10/16/15 XNUMX:XNUMX)

Formulate specific questions.



Palladin ©   (2010-04-03 12:22) [14]

PS: "How to implement this?" - the question is far from specific.



Вэн ©   (2010-04-03 13:05) [15]

Demo © (02.04.10 19: 24) [6]


> PS. What is MMO?


MMORPG - Massively Multiplayer Role Playing Game :)


> Sorry, but the text 1) is absolutely unreadable 2) a lot of obscure
> questions.
> Understand what you need and ask a specific question.
>


I need:
1. make the updater check for file differences,
if the file on the server is newer than in the final directory of the client,
then he updates it; if not, then skips it;
2. make one ProgressBar display a copy of one file, the second - a general copy (of all catalog files);
3. so that the name of the updated file is displayed in Label1,
in Label2 - the number of updated files in the same format => updated / left,
in Label3 - the size of the copied file (s) in this format => how many are uploaded (total file size) / total size of all updated files;


>> write an updater ...
>
> Hire a programmer.


theoretical advice - WHAT I’m NOT interested in doing, I’ll figure it out myself, I’m interested in practical advice - HOW to do it ... in principle, something like that, in the sense of not an updater, of course, namely related to the elements given above - for example, 2nd I’ve already done the point before, but I forgot how, and the source code is lost, therefore I ask you to help ...



И. Павел ©   (2010-04-03 13:20) [16]

Here are some things you need to solve this problem:

The file modification date can be obtained as follows:

function GetFileDate(FileName: string): string;
var
 FHandle: Integer;
begin
 FHandle := FileOpen(FileName, 0);
 try
   Result := DateTimeToStr(FileDateToDateTime(FileGetDate(FHandle)));
 finally
   FileClose(FHandle);
 end;
end;


Determining the file size:
http://delphi-manual.ru/filesize.php

Enumeration of all files is done like this:
http://devoid.com.ua/pascal-delphi/delphi-for-beginners/programmnij-poisk-failov-na-delphi.html

IMHO everything. You just need to combine these techniques and write a program.



И. Павел ©   (2010-04-03 13:32) [17]

Well, probably, you can still read here:

http://www.sql.ru/forum/actualtopics.aspx?search=FTP+indy&submit=%CD%E0%E9%F2%E8&bid=20



Вэн ©   (2010-04-10 11:26) [18]

By the way, I seem to have forgotten to mention that the remote server from which the updater should download files is under the control of the Debian OS, and there, as far as you know, the directory structure is slightly different than in Windows :)



sniknik ©   (2010-04-10 11:47) [19]

but for ftp, as far as you know, do not care.



Вэн ©   (2010-04-10 14:21) [20]

type with clever chtoli? On the server, only ssx access is available, and you can still download via http, ftp is not present, no matter how you try to pick it up, it is not connected through the total, through fileZilu, etc. ftpmanager ... no access ...



sniknik ©   (2010-04-10 14:36) [21]

are you a fool? no matter what YOU have, there is none unless HERE is indicated.

the above link to the description of ftp, after which your remark "oh forgot to mention" ... not "sorry there is no such protocol on my server", namely what is said about the directory structure.

for ssh, by the way, it is also not important, but http ... well, I would see how you and the client know the time it took to create the file. it would be possible to give performances in the circus.

Harakiri (02.04.10/17/09 4:XNUMX) [XNUMX]
>> write an updater ...
> Hire a programmer.
+1 the most reasonable that you can advise.



Pages: 1 whole branch

Forum: "Beginners";
Current archive: 2010.08.27;
Download: [xml.tar.bz2];

Top





Memory: 0.63 MB
Time: 0.104 c
15-1265122686
Yurikgl
2010-02-02 17:58
2010.08.27
A program that calculates the time of pronunciation of the text


15-1268385262
Jeer
2010-03-12 12:14
2010.08.27
They counted us


2-1270035677
Valigosi2
2010-03-31 15:41
2010.08.27
The way to set the order of records


2-1271431396
Nikru
2010-04-16 19:23
2010.08.27
WebBrowser


15-1271053363
Trsteep
2010-04-12 10:22
2010.08.27
New Folder Button on the Toolbar





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish ภาษาไทย turkish Ukrainian urdu Tiếng Việt welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish