Register    Login    Forum    Search    FAQ

Board index » Spellforce 1 » Mods




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Spellforce Data Editor
 Post Posted: Wed Aug 03, 2016 6:24 pm 
Offline
User avatar

Joined: Sat Jul 09, 2016 2:27 am
Posts: 21
Hey everyone,

so after I saw a few editors I kind of got inspired to try to create an editor myself. I only started learning C# 2 weeks ago so it might not be the user friendliest. It's also not completed yet so I'd like to hear from you guys what I can do better or what's missing apart from the boxes on the right for every offset. Also tell me about any bugs you find please.

Requires: .NET Framework 4.5.2

So thanks in advance for the feedback

WARNING! Always keep backups and test every little change. As I said I'm a rather unexperienced programmer and the editor might break stuff if you're not careful. (I just broke my game :D)

I uploaded my Visual Studio Project folder for anyone interested.

Attachment:
SpellforceDataEditor.7z [21.19 KiB]
Downloaded 146 times

Attachment:
SF Data Editor Project Folder.rar [2.2 MiB]
Downloaded 85 times

Also reload the text atleast once after each update. It won't crash, but it will throw out an exception and won't function.

What's integrated at the moment
1. spells/skills
2. spell/skill ui
4. unit/hero stats
7. item type/name ID/price
8. armor class item stats
9. scroll ID with spell ID/rune ID with rune in slot ID
10. weapon class item stats
11. item requirements
14. spell item ID with spell number
15. text IDs
18. unit names
19. unit equipment
21. hero army unit resource requirements and upgrades
28. skills requirements
29. merchant ID with unit ID
30. merchant's inventory


Changelog
04.08.2016
    integrated Text ID offset (it takes a while to load though)
    integrated merchant ID with unit ID offset
    integrated merchant's inventory offset
07.08.2016
    integrated Spell/Skill UI
    integrated armor type stats
08.08.2016
    updated readme
    added button to reload text from gamedata
    integrated item type/name ID/price offset
    integrated scroll ID with spell ID offset
    integrated spell item ID with spell number offset
09.08.2016
    added an Add-Button
10.08.2016
    added a Copy-Button (kept the Add-Button for... reasons :D)
    added a Remove-Button
30.08.2016
    Added unit corpse and chest loot offsets
    Added other stuff (can't remember)
    Fixed some bugs
31.08.2016
    Added even more small stuff (every offset I have info on should be there now)


Last edited by Insigar on Thu May 25, 2017 12:03 pm, edited 19 times in total.

Top 
 Profile  
Reply with quote  
 Post Posted: Thu Aug 04, 2016 4:08 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
nice one :)
you can check offsets topic for the changes to improve your editor

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Thu Aug 04, 2016 4:44 pm 
Offline
User avatar

Joined: Sat Jul 09, 2016 2:27 am
Posts: 21
I based every information the editor processes from that topic. So a huge thanks to you for providing this information.


Top 
 Profile  
Reply with quote  
 Post Posted: Thu Aug 04, 2016 9:01 pm 
Offline
Site Admin
User avatar

Joined: Sun Nov 13, 2011 2:57 pm
Posts: 541
Insigar wrote:
30. merchant's inventory (Not sure what the last 2 bytes do)


02 00 21 00 01 00

02 00 - merchant ID
21 00 - item ID
01 00 - quantity of the item

_________________
Tempus et vita, tempus et mortis


Top 
 Profile  
Reply with quote  
 Post Posted: Thu Aug 04, 2016 9:24 pm 
Offline
User avatar

Joined: Sat Jul 09, 2016 2:27 am
Posts: 21
Thank you, updated it.


Top 
 Profile  
Reply with quote  
 Post Posted: Sat Aug 06, 2016 7:36 pm 
Offline
User avatar

Joined: Fri May 01, 2015 3:26 pm
Posts: 25
Location: Poland
Oh no, right when I wanted to do a big comeback! Just kidding, great work!


Top 
 Profile  
Reply with quote  
 Post Posted: Wed Aug 17, 2016 11:15 am 
Offline
User avatar

Joined: Fri Sep 05, 2014 2:59 pm
Posts: 24
Wow, nice work!

Not sure if i get this right but is it possiple now to add Items instead of using the existing ones?
btw: How do to replace the skin of the rune heroes like kyra or the blades? I can only find the id of them as normal units


Top 
 Profile  
Reply with quote  
 Post Posted: Wed Aug 17, 2016 3:42 pm 
Offline
User avatar

Joined: Sat Jul 09, 2016 2:27 am
Posts: 21
It is possible to add new items. If you want to add a weapon for example you need to add a new entry to offset 7 (for item type and price), 10 (for weapon stats), 11 (for skill requirements), 13 (for the icon), 15 (for text) and 30 (to add it to a merchant). Also you need to add a new weapon to the sql_item.lua.

For Kyra's skin: in offset 19 you can find the unit equipment. Kyra has a chest piece which gives her the model off an elf windarcher. If you change the item ID of the chest to 508 for example Kyra will look like a human armsman.


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Aug 29, 2016 8:22 am 
Offline
User avatar

Joined: Fri Sep 05, 2014 2:59 pm
Posts: 24
Insigar wrote:
For Kyra's skin: in offset 19 you can find the unit equipment. Kyra has a chest piece which gives her the model off an elf windarcher. If you change the item ID of the chest to 508 for example Kyra will look like a human armsman.


Not exactly what i meant. i can't find the chest ID for the rune heroes like Kyra, just for the normal unit. Model for the rune kyra doesn't change from that. =(


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Aug 29, 2016 3:46 pm 
Offline
User avatar

Joined: Sat Jul 09, 2016 2:27 am
Posts: 21
I noticed this myself but forgot to reply, sorry about that. But I investigated a bit and it looks like the skin is linked to the unit stats. I tested this by creating a completely new hero and giving him Kyra's unit stats. He now looks like her :D I'll keep you updated

Edit: Absolutely no idea where it's defined that the Unit stats ID 1730 gets equipped with the 4082 (figure type item called Kyra)


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

Board index » Spellforce 1 » Mods


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
www.000webhost.com