Modding gamedata

Post Reply
User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Modding gamedata

Post by rupuzioks » Sun May 03, 2015 10:01 am

here is offsets:

viewtopic.php?f=29&t=249

UPDATED 2015 10 26
Tempus et vita, tempus et mortis

User avatar
VolterPL
Posts: 26
Joined: Fri May 01, 2015 3:26 pm
Location: Poland

Re: Modding gamedata

Post by VolterPL » Sun May 03, 2015 10:59 pm

Thank you for this. I think it would also be good to know, what each byte means in these sections, for example:

a) as of skills requirements:
04 0A 00 00 00 00 32 00 3C


ability type:
01 = Light Combat Arms,
02 = Heavy Combat Arms,
03 = Ranged Combat,
04 = White Magic,
05 = Elemental Magic,
06 = Mind Magic,
07 = Black Magic,



ability level



stats in the following order:
- Strength,
- Stamina,
- Agility,
- Dexterity,
- Charisma,
- Intelligence,
- Wisdom.


I'm hoping to solve more codes.


Also, where do you get spells, heroes, items, merchants and such ids from? :D

User avatar
VolterPL
Posts: 26
Joined: Fri May 01, 2015 3:26 pm
Location: Poland

Re: Modding gamedata

Post by VolterPL » Mon May 04, 2015 12:11 am

I've found something messy, although interesting:
http://gmclan.org/uploader/5605/Id_prze ... e___1_.txt

Edit:
Nevermind, here's the thing in better style:
http://forum.spellforce.com/showthread.php?p=773896

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Modding gamedata

Post by rupuzioks » Mon May 04, 2015 4:24 pm

IDs are in lua files:
sql_building
sql_item
sql_object
sql_spellline
sql_unit
Tempus et vita, tempus et mortis

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Modding gamedata

Post by rupuzioks » Mon May 04, 2015 4:27 pm

viewtopic.php?p=416#p416

here I have list of units, objects, buildings (objects are unfinished)

item's list also is in this forum (source from official forum)
Tempus et vita, tempus et mortis

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Modding gamedata

Post by rupuzioks » Mon May 04, 2015 4:34 pm

item stats order:

Strength
Stamina
Agility
Dexterity
Health
Charisma
Intelligence
Wisdom
Mana
Armor Class
fire magic resistance
ice magic resistance
black magic resistance
mind magic resistance
run speed
fight speed
cast speed

item type IDs:

helmet 01 01
upper armor 01 02
lower armor 01 03
ring 01 06
1H weapon 01 07
2H weapon 01 08
shield 01 09
robe/full body armor 01 0A
figure NPC/enemy/animal 01 0B
xbow/bow 01 0C
figure hero army units 01 0D
rune hero in inventory 02 00
rune workers in inventory 02 0X (X=1-6 race type)
rune hero added 03 00
rune workers added 03 0X (X=1-6 race type)
scroll 04 00
spell 05 00
unit plan in inventory 06 0X (X=1-6 race type)
building plan in inventory 07 0X (X=1-6 race type)
unit plan added 08 0X (X=1-6 race type)
building plan added 09 0X (X=1-6 race type)
quest item or jewelery 0A 00
blank scrolls lvl 1-20 0B 00
Tempus et vita, tempus et mortis

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Modding gamedata

Post by rupuzioks » Mon May 04, 2015 4:46 pm

here is more detailed skills and spells IDs:

LC :
piercing 01 01
blade 01 02
blunt 01 03
armor 01 04

HC:
blade 02 01
blunt 02 02
armor 02 03
shield 02 04

RC:
bow 03 01
xbow 03 02

WM:
life 04 01
nature 04 02
boons 04 03

EM:
fire 05 01
ice 05 02
earth 05 03

MM:
enchantment 06 01
offensive 06 02
defensive 06 03

BM:
death 07 01
necro 07 02
curse 07 03
Tempus et vita, tempus et mortis

Jenda358
Posts: 13
Joined: Tue Jul 17, 2012 10:37 pm

Re: Modding gamedata

Post by Jenda358 » Mon May 04, 2015 5:14 pm

Thanks, this is a useful info.
I have one question. What is "spell ui"?

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Modding gamedata

Post by rupuzioks » Mon May 04, 2015 7:25 pm

spell ui is icon/button in game
Tempus et vita, tempus et mortis

Jenda358
Posts: 13
Joined: Tue Jul 17, 2012 10:37 pm

Re: Modding gamedata

Post by Jenda358 » Fri May 15, 2015 4:08 pm

Thank you so much!
Good job!

Post Reply