Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
how to create button for update my game? #335228
07/27/10 11:21
07/27/10 11:21
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
i want to create button for update my game "models and scripts and map"
but i don't now how to create this aplication
can you help me plz?

Re: how to create button for update my game? [Re: cgcg] #335232
07/27/10 11:34
07/27/10 11:34
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
you have to provide a server, where the updates can be found (in the easiest way this is a simple http or ftp-server). the game have to
- establish a connection
- calculate the differences (the easiest is to use a versionnumber)
- download the models and maps

if you do this, you should add some security like 2-sided authentification using hashes or something

if you want to update your scripts too you have to write another application. this is afair not possible with acknex, because the engine wonŽt start if any of the scriptfiles are modified. so you have to update your game-exe too if you want to update your scripts. so youŽll need an external game-updater. otherwise you cant copy the new game-exe on its place

Re: how to create button for update my game? [Re: Tempelbauer] #335292
07/27/10 17:22
07/27/10 17:22
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
i have page ftp can you give me exemple

Re: how to create button for update my game? [Re: cgcg] #335311
07/27/10 18:52
07/27/10 18:52
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
hellooooooo

Re: how to create button for update my game? [Re: cgcg] #335314
07/27/10 19:08
07/27/10 19:08
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
i donŽt know if the commercial or pro edition of gamestudio support connecting to ftp-servers, but the ANET-plugin does: http://www.anet-plugin.com/downloads_eng.htm
you can use the demo edition for testing

for moving and replacing the files on the pc, you can access the winapi-functions or simply use fear411Žs latest plugin: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=316102&gonew=1

for version control simply create for every version a directory on the server (with the versionnumber as name). put in the folder every changed file

in you game or updater-program you have to do the folowing steps:
1.) read out the current version of the installed game (you can store it into a textfile or so)
2.) connect to the server and list all version directories
3.) convert the names into a float-var and compare them with your game-version
4.) if thereŽs no bigger versionnumber, is no update available. if there is a bigger version enter the directory, list the files and start downloading them into a temporary folder
5.) replace the files that youŽve downloaded with the old ones
6.) increase the versionnumber to the downloaded one
7.) finish


all the functions you need can be found in the documentation of this 2 plugins. ANET have some examples how to use it. take a look about it and youŽll understand how they work

happy coding and good luck

Re: how to create button for update my game? [Re: Tempelbauer] #335342
07/27/10 21:10
07/27/10 21:10
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Actually it would make sense to write a general Tool for this,
instead of handling this inside the engine.
(Idea for the Tool-contest)

Like a "Start App" Tool, that contains:

-A starter-splash
-some options like screen-res to select
-A "info" Button
-A "START" Button (starting the exe, in this case acknex)
-A "Check for Updates"
(wich contacts the server, checking for a new version number,
and then downloading automatically the updated assets)


Re: how to create button for update my game? [Re: Damocles_] #335400
07/28/10 09:42
07/28/10 09:42
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Something like the Sparkle framework would be great.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: how to create button for update my game? [Re: WretchedSid] #335431
07/28/10 13:17
07/28/10 13:17
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
my game not multiplayer it's singlplayer

Re: how to create button for update my game? [Re: cgcg] #335434
07/28/10 13:33
07/28/10 13:33
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
this my page ftp
ftp://www.games.net@eu5.org/
passe: 19951992
i need how + pic

Re: how to create button for update my game? [Re: cgcg] #335800
07/30/10 17:12
07/30/10 17:12
Joined: Apr 2010
Posts: 43
C
cgcg Offline OP
Newbie
cgcg  Offline OP
Newbie
C

Joined: Apr 2010
Posts: 43
helloooo

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1