Jump to content
  • 0

(Help) Update SRC code


Racing

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

Hello, Friends. This script is Bomberman event. Creator: KeyWorld

 

The fact is, I've found a few SRC in my old pc, and I would like to update and make it compatible with the emulator rathena.

 

I tried to add it and gives me the following error when compiling.:

 



1>------ Operación Generar iniciada: proyecto: map-server_sql, configuración: Debug Win32 ------
1> clif.c
1> map.c
1> script.c
1>c:\ro\src\map\script.c(18025): warning C4047: 'función' : 'block_list *' es distinto en los niveles de direccionamiento indirecto de 'int'
1>c:\ro\src\map\script.c(18025): warning C4024: 'map_clearflooritem' : tipos distintos para el parámetro formal y el parámetro real 1
1>c:\ro\src\map\script.c(18049): error C2039: 'src4instance' : no es un miembro de 'map_flag'
1> c:\ro\src\map\map.h(546) : vea la declaración de 'map_flag'
1>c:\ro\src\map\script.c(18049): error C2039: 'instance_id' : no es un miembro de 'script_state'
1> c:\ro\src\map\script.h(119) : vea la declaración de 'script_state'
1>c:\ro\src\map\script.c(18051): warning C4013: 'instance_mapid2imapid' sin definir; se supone que extern devuelve como resultado int
1>c:\ro\src\map\script.c(18051): error C2039: 'instance_id' : no es un miembro de 'script_state'
1> c:\ro\src\map\script.h(119) : vea la declaración de 'script_state'
========== Generar: 0 correctos, 1 incorrectos, 2 actualizados, 0 omitidos ==========


(Sorry that was Spanish, since that is my language)

 

I will attach the diff file to look at the changes.

 

Please this is very important to me, I would appreciate any help.

 

Greetings comrades.

bomberman.diff

Edited by Racing
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

can i see ur script.h and script.c and map.h?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

can i see ur script.h and script.c and map.h?

Is attached, I've also added the files that I edited.

Archivos.rar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

can i know the diff?(patch file) i found different structur with default rathena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

The diff file is in first tocpic.

 

Anyway, I'll put it again here:

bomberman.diff

Edited by Racing
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

The diff file is in first tocpic.

 

Anyway, I'll put it again here:

they rewrite the instance system. they already remove the src4instance

check this changelog 

http://trac.rathena.org/changeset/17386/rathena/trunk/src/map/atcommand.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

Mmm... Ok, but there must be a way to fix it, right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

try to remove the map[m].flag.src4instance &&

it will look like this

if( st->instance_id )
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  01/21/12
  • Last Seen:  

try to remove the map[m].flag.src4instance &&

it will look like this

if( st->instance_id )

 

mmm ... could explain a little more detail. please. XD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

Your diff contain makeitem & areaclean what so important?

 

rathena emulator already have both

 

*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;
*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

 


*cleanarea "<map name>",<x1>,<y1>,<x2>,<y2>;
*cleanmap "<map name>";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...