Jump to content
  • 0

Battle.c compiling errors


NeoSteel

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/26/16
  • Last Seen:  

Hey everyone!

So here's what happened: I was trying to fix an issue where the Advanced Stylist wasn't providing any cloth colors.  When I changed a couple of the scripts pertaining to that, and went to recompile them and restart the server, I received an error that prevented me from running the server.  Now the map-server.exe is not found and I can't find the root problem causing the errors.  I'm sure this is a very easy fix, but I'm just not good enough with coding to figure this stuff out.  I have tried downloading fresh version of battle.c, but it hasn't helped.  I have done a fair amount (at least what I think is a fair amount) of customization for my server and it was working just fine until I messed with the stylist and went to recompile.

I have attached my battle.c, which appears to be where all the issues are stemming from.  And here is the text I get when rebuilding my solutions to compile.

1>------ Rebuild All started: Project: char-server, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: login-server, Configuration: Debug Win32 ------
3>------ Rebuild All started: Project: map-server, Configuration: Debug Win32 ------
4>------ Rebuild All started: Project: mapcache, Configuration: Debug Win32 ------
1>  grammar.c
1>  libconfig.c
1>  scanctx.c
1>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
3>  grammar.c
3>  libconfig.c
3>  scanctx.c
3>  scanner.c
3>  strbuf.c
3>  mt19937ar.c
1>  core.c
2>  grammar.c
2>  libconfig.c
2>  scanctx.c
2>  scanner.c
2>  strbuf.c
2>  mt19937ar.c
4>  core.c
4>  des.c
4>  grfio.c
4>  malloc.c
4>  showmsg.c
4>  strlib.c
1>  conf.c
3>  conf.c
3>  core.c
2>  mempool.c
2>  mutex.c
4>  utils.c
1>  db.c
1>  ers.c
3>  db.c
4>  mapcache.c
1>  malloc.c
1>  mapindex.c
3>  des.c
3>  ers.c
1>  mempool.c
2>  raconf.c
3>  grfio.c
2>  thread.c
2>  core.c
3>  malloc.c
1>  mutex.c
3>  mapindex.c
2>  conf.c
1>  nullpo.c
1>  raconf.c
3>  md5calc.c
1>  random.c
1>  showmsg.c
3>  mempool.c
2>  db.c
2>  ers.c
2>  malloc.c
3>  mutex.c
3>  nullpo.c
3>  raconf.c
2>  md5calc.c
1>  socket.c
3>  random.c
3>  showmsg.c
1>  sql.c
3>  socket.c
2>  nullpo.c
2>  random.c
1>  strlib.c
2>  showmsg.c
2>  socket.c
2>  sql.c
3>  sql.c
2>  strlib.c
1>  thread.c
2>  timer.c
1>  timer.c
1>  utils.c
3>  strlib.c
1>  cli.c
3>  thread.c
2>  utils.c
3>  timer.c
1>  msg_conf.c
3>  utils.c
2>  cli.c
1>  char.c
3>  cli.c
2>  msg_conf.c
3>  msg_conf.c
1>  char_clif.c
1>  char_cnslif.c
2>  account.c
1>  char_logif.c
2>  ipban.c
2>  login.c
3>  atcommand.c
2>  loginchrif.c
1>  char_mapif.c
3>  battle.c
2>  loginclif.c
3>  battleground.c
1>  int_auction.c
3>  buyingstore.c
2>  logincnslif.c
3>  cashshop.c
2>  loginlog.c
3>  channel.c
1>  int_clan.c
1>  int_elemental.c
1>  int_guild.c
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(1044): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(1118): error C2065: 'BLOWN_NONE': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(1189): error C2065: 'BLOWN_NONE': undeclared identifier
1>  int_homun.c
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(5011): error C2065: 'BLOWN_NONE': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(5204): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(5205): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(5206): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(5207): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(6579): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(6580): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(6809): error C2065: 'BLOWN_NONE': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(6840): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(6841): error C2065: 'SC_MAXPAIN': undeclared identifier
3>c:\users\steel\desktop\rathena server\rathena\src\map\battle.c(7272): error C2065: 'BLOWN_NONE': undeclared identifier
3>  chat.c
3>  chrif.c
1>  int_mail.c
1>  int_mercenary.c
3>  clan.c
1>  int_party.c
3>  clif.c
1>  int_pet.c
3>  date.c
3>  duel.c
1>  int_quest.c
1>  int_storage.c
1>  inter.c
3>  elemental.c
3>  guild.c
3>  intif.c
3>  itemdb.c
3>  log.c
3>  mail.c
3>  map.c
3>  mapreg.c
3>  homunculus.c
3>  instance.c
3>  mercenary.c
3>  mob.c
3>  npc.c
3>  npc_chat.c
3>  party.c
4>  mapcache.vcxproj -> C:\Users\Steel\Desktop\rAthena Server\rathena\vcproj-14\..\mapcache.exe
4>  mapcache.vcxproj -> ..\mapcache.pdb (Full PDB)
3>  path.c
3>  pc.c
3>  pc_groups.c
3>  pet.c
3>  quest.c
3>  script.c
3>  searchstore.c
3>  skill.c
3>  status.c
3>  storage.c
3>  trade.c
3>  unit.c
3>  vending.c
2>  login-server.vcxproj -> C:\Users\Steel\Desktop\rAthena Server\rathena\vcproj-14\..\login-server.exe
2>  login-server.vcxproj -> ..\login-server.pdb (Full PDB)
1>  char-server.vcxproj -> C:\Users\Steel\Desktop\rAthena Server\rathena\vcproj-14\..\char-server.exe
1>  char-server.vcxproj -> ..\char-server.pdb (Full PDB)
========== Rebuild All: 3 succeeded, 1 failed, 0 skipped ==========

battle.c

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

Quote

 When I changed a couple of the scripts pertaining to that, and went to recompile them and restart the server

Changing scripts doesn't need a recompile to take effect.

From the error we just can see, that 'SC_MAXPAIN' and 'BLOWN_NONE' are undeclared in battle.c.

BLOWN_NONE is declared in src/map/skill.h

SC_MAXPAIN is declared in src/map/status.h

Both are used in the battle.c. So your battle.c seems to be in a wrong version. It's not enough to update a single file. Either you update your entire rathena, or you stay at an old revision. If you have no idea how to update rathena, you should have a closer look at how to use git: https://git-scm.com/book/en/v2

With this knowledge you can easily merge rathena updates with your changes. Good luck!

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...