IPB

Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
[Cliente][Neoncube]Guia Para Crear Auto updater, Facil de Seguir
Omega
post Nov 24 2005, 12:24 PM
Post #1


PHP Develpoer And Offline Support
Group Icon

Group: Spanish Forum Moderators
Posts: 886
Joined: 28-September 05
From: Venezuela
Member No.: 126,504



Cosas Necesarias-
El Neoncube(El Link es De la Ultima versión Que está Siendo actualizada Constantemente...Aqui Les dejo El Post Para Que esten al Corriente de Lo que Pasa y Si Sale Una Nueva Versión
- El GRF de Tu Servidor

Comenzemos
1.- Extrae el Neoncube En Una Capeta ( Ej : Mi Server )
2.- Coloca Tu Grf En Esa Capeta
3.- Abre La Carpeta Neoncube que esta Dentro de la Carpeta Que creaste ( Ej : Mi Server\neoncube )
4.- Abre El Archivo neoncube.ini

Este Es El Archivo Origuçinal
CODE
;##############################################################################
;##      NEONCUBE - RAGNAROK ONLINE PATCH CLIENT
;##
;##  http://openkore.sourceforge.net/neoncube
;##  (c) 2005 Ansell "Cliffe" Cruz (Cliffe@xeronhosting.com)
;##  
;##  This program is free software; you can redistribute it and/or modify
;##  it under the terms of the GNU General Public License as published by
;##  the Free Software Foundation; either version 2 of the License, or
;##  (at your option) any later version.
;##
;##  This program is distributed in the hope that it will be useful,
;##  but WITHOUT ANY WARRANTY; without even the implied warranty of
;##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;##  GNU General Public License for more details.
;##
;## You should have received a copy of the GNU General Public License
;##  along with this program; if not, write to the Free Software
;##  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
;##
;############################################################################
###

; neoncube.ini
;
; server_name  = Server's name (EG: Korean Ragnarok Online, International Ragnarok Online, mRO, aeRO, etc)
; notice_url      = address of the notice (without the http://) (EG: www.domain.com/notice.php)
; patch_url      = domain name of the patch server (where the files will be downloaded) (EG: www.patchserver.domain.com)
; patch_list      = path to the patchlist text document (EG: /path/to/patchlist.txt)
; executable      = the file to be opened when the start game button has been pressed (EG: ragnarok.exe)
; patch_folder      = path to the folder which contains the patch files (EG: /path/to/folder/which/contain/patches/)
; registration_link    = URL of the registration page (EG: http://www.domain.com/register.php)
; grf    = grf file (EG: adata.grf)
; skin    = skin to use (EG: default_skin)    
; Backup_GRF      = set to 1 if you want to backup the GRF file before applying the patch. 0 to disable.
; startup_option    = Set to 1 if you want to be able to start the ragnarok client anytime. (patcher is still
;     downloading files, patcher failed to connect, patcher failed to extract, etc).
;     Set to 2 if you want to be able to start the ragnarok client only AFTER the patch process has completed (if it;;      fails to connect/download a patch, it won't start) .
;     set to 3 if you want to be able to start the ragnarok client only AFTER the patch process has completed (if it
;    fails to connect/download a patch. it WILL start) . recommended.
; ragexe_call  = ragexe call. You may leave it blank.

[server]
server_name = Your Server Name

notice_url = localhost

patch_site = localhost

patch_list = /files/patch2.txt    
    
executable = client.exe

patch_folder = /files/

registration_link = http://ragnarok.co.kr

skin = skin_default

grf_file = adata.grf

Backup_GRF= 1

startup_option = 3

ragexe_call = 1rag1


5.- Modifica El Archivo Con Tus Opciones
CODE
[server]
server_name = Your Server Name

Aca Coloca El Nombre de tu Servidor ( Ej : The ALiance RO /gg )

CODE
notice_url = localhost

Aca va La Url del Archivo de Noticias; No Coloques el http:// Al Principio ( Ej : www.the-aliance-ro.com/noticias.html ) Puedes Colocar archivos Htm, Html, Asp, php, cgi

CODE
patch_site = localhost

Aca Va La La dirección de Donde se Van a Obtener Los archivos; Debes Colocar Solo La web, No La web Con su Carpeta ( Ej : www.the-aliance-ro )

CODE
patch_list = /files/patch2.txt

Aca Va El archivo Con La Lista De Actualizaciones; debe Comenzar con el / Siempre, si crearas una carpeta en la web para poner tus actualizaciones pon el nombre de la carpeta antes ( Ej : /patch/archivos.txt )

CODE
executable = client.exe

Aca Colocas El Exe de tu Server ( Ej : Aliance.exe )

CODE
patch_folder = /files/

Aca La Carpeta Donde Colocarás Todas Las actualizaciones, debe Comenzar y terminar Con / ( Ej : /patch/ )

CODE
registration_link = http://ragnarok.co.kr

Aca Colocas Tu Pagina de Registro, Si Tienes Una, Sino Puedes dejarla en Blanco

CODE
skin = skin_default

El Skin que Utilizará El Programa, El Neoncube Es Muy Personalizable, Tiene Con 2 Skins El Skin_default y el Skin_red, Ademas Puedes crear Los Tuyos Propios, Solo Copia El Conenido de Uno de los Skins que trae A Otra carpeta editalos a Tu Gusto y Listo

CODE
grf_file = adata.grf

Aunque es un Poquito Obvio Lo Explicare Para Los que No Saben Ingles, Aca va El Nombre de su grf ( Ej : adata.grf xD )

CODE
Backup_GRF= 1

Otra Opción Muy Interesante, el Neoncube Puede Hacer Copias de seguridad de Su Grf, esto Es Muy Bueno Porque Cuando lo Esten Probando Si Se Equivocan Van a Pasar Muchos Malos ratos; Las Opciones Son 1 = Si, 0 = No

CODE
startup_option = 3

Esta Opcion es Para establecer Cuando quieren que Se Pueda ejecutar El Juego, sus Opciones Son :
1.- En cualquier Moment. Al Hacer Click En El Boton Star Game Se Inicia El Juego y El Patch server Continia trabajando ( No Es Muy Recomendable xq Puede Producir erroes urante El Juego )
2.- Inicia El Juego Solo despues de Que El Patch termine, Si El Patch Falla el Juego o Comenzará ( Asi Es Como Funciona El Patch server Del Juego Original ), Solo Es aconsejable Si Tienen Un server Que Tenga Un ancho de Banda para descargas ilimitadas para q todo el Tiempo se Pueda Decargar Sus atualizaciones sin Ningun Problema
3.- Inicia El Juego despues de que El Patch Termine, si El Patch falla El Juego De Todas Formas se Puede Iniciar ( esta es La Opcion Mas recomendada y la Que Tre inicialmente

CODE
ragexe_call = 1rag1

Esto Es Para Crear Un Exe que No Se Pueda Ejecutar Haciendole CLick Desde Fuera, Como El Del server Original, Solo Puede ejecutarse si Hace CLick en El Boton start, Tu Exe Debe Estar Editado Con La Diff Tool y Tener desactivada la Opcion disable 1rag 1sak Call; si Tu exe es Uno de Esos Normalitos que se Ejecutan Como Si nada Deja Esta Opcion en Blanco

Una Vez Hechos Todos Los arreglos en El Ini Llega El Momento de crear El Archivo con la Lista de las actualizaciones

CODE
// este Es El Primer archivo de todos
1 GRF adata.grf
//este Otro Es Una Primera Actualización
2 GRF actu1.gpf

//Incluso Puedes Trabajar Con Carpeta Data Y No Con Archivos GRF
//Tambien Puedes Usar Archivos rar
3 FLD Datafolder.rar
//Puedes Borrar archivos Tambien
4 GRF data\Este_lo_BOrro.txt
5 FLD data\No_lo_quiero.spr


El Archivo con las actualizaciones es Muy sencillo de Manejar, solo debes Poner Un Numero Al Principio, debes ir Llevando un orden ascendente, Puedes Colocarle Comentarios a cada actualización, si no quieres usar grf puedes usar una carpeta data, para ello comprime la carpeta data en un rar y en la colocala en la lista.
La estructura del Archivo es asi

CODE
<NUMERO> <FLD O GRF> <NOMBRE DEL ARCHIVO GRF, GPF o RAR>

El Numero debe ir aumentando y puede comenzar en 1 o en 100 o 58000 si quieren
Luego un espacio en Blanco
GRF es para los que usan grf
FLD es para los que usan carpeta data ( deben Comprimir la carpeta data en un rar )
Espacio en Blanco
El Nombre del GRF GPF o RaR de la actualización
si en una acualización quieren borrar un archivo dentro de un GRF o en la carpeta data sigan el Ejemplo

CODE
<NUMERO> >GRF> data\archivo.extension
<NUMERO> >FLDF> data\archivo.extension

Asi de Simple, El Numero de La actualizacion, espacio en blanco ( simepre ) GRF o FLD segun sea El caso, Espacio en Blanco ( Otra Vez ) data\ ( para decir que es dentro de la data o el grf ) nombre_completo_del_archivo.Extension; esto es pori quieren borrr un archivo dentro de otra carpeta Ej : data\sprite\no_lo_quiero.spr )[/B]

Nuestro trabajo esta protegido:
(IMG:http://i.creativecommons.org/l/by-nc-nd/2.5/88x31.png)
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 License.
Condición:
- Para distribuir esta guía/f.a.q. se necesita previa autorización del autor.
- El autor es el único que se reserva el derecho de copiar esta guía.

This post has been edited by VanZ: Feb 7 2007, 04:54 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 29th July 2010 - 04:54 PM
Bridged By IpbWiki: Integration Of Invision Power Board and MediaWiki © GlobalSoft