Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: More Heroes?
Thread: More Heroes?
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted June 30, 2016 03:05 PM

More Heroes?

is it possible to create a plugin which gives more heroes? Would it be hard to do?

I know we need:
- Find place where heroes is saved
- find all references to this table
- make new bigger table
- copy original table
- fill rest of it by "blank Heroes" or use some config files and read them
- replace all references to the table with references to new table

there are three ways of getting it
- some pro may do it
- some pro will help me do it
- I hardly work it alone

I would bet on 2

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
OxFEA
OxFEA


Promising
Famous Hero
feanor on DF2.ru
posted June 30, 2016 04:45 PM

Main problem - hero table is a field in gamemanager structure.
Its address is dynamic and all references uses calculations for getting data.
Second problem - saves.
Third - there are a lot of tables and not only SoD ones, WoG adds some tables too. And some of them are bitfields.
Fourth - after all of this we will still have 256-limit.

I'd suppose a virtual pool - amount of heroes on map is limited (8 per player, 48 in garrisones, some at jails, and we can manipulate existing slots (through dynamic changes of names, portaits, bios and etc) to create the illusion of much more amount of heroes.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bloodsucker
bloodsucker


Legendary Hero
posted June 30, 2016 04:52 PM

OxFEA said:
I'd suppose a virtual pool - amount of heroes on map is limited (8 per player, 48 in garrisones, some at jails, and we can manipulate existing slots (through dynamic changes of names, portaits, bios and etc) to create the illusion of much more amount of heroes.
I like this idea, we don't need MORE heroes we need a bigger variety of "good" heroes. If different heroes were assembled from a random map to another it would be something.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted June 30, 2016 04:57 PM

Meh, if you want a new pattern for Heroes, just expose a good idea then try to script it, or propose it to others to help scripting. We can make a mod where you actually choose manually your heroes specialty.

but such mod exists already, is Phoenix mod/

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Legendary Hero
posted June 30, 2016 05:29 PM

Very good idea. New types of heroes are needed for new cities. Not only replaceing olds. If only it is possible do it!:-)


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted June 30, 2016 11:05 PM

I am preparing mod: Knightmare Heroes, and I have too low Heroes per faction to have enough good Specialities. which is more problematic since I added new ones. Specialists in Scholar and Wisdom did nothing in SoD, but in KH they does (by script). I don't want having speciality chooser like in some mods. Aaah I would probably have even more specs but how would it fit .

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted June 30, 2016 11:09 PM
Edited by majaczek at 23:15, 30 Jun 2016.

OxFEA said:
Main problem - hero table is a field in gamemanager structure.
Its address is dynamic and all references uses calculations for getting data.
Second problem - saves.
Third - there are a lot of tables and not only SoD ones, WoG adds some tables too. And some of them are bitfields.
Fourth - after all of this we will still have 256-limit.

I'd suppose a virtual pool - amount of heroes on map is limited (8 per player, 48 in garrisones, some at jails, and we can manipulate existing slots (through dynamic changes of names, portaits, bios and etc) to create the illusion of much more amount of heroes.


So it is static array, not a pointer? it's sad. 256 limit is good enough for me. I noticed some tables related to heroes use one or another length (HERNUM and HERNUM0 I believe). It seems ffor me like additional resources (like more portraits in map editor than heroes) or perhaps heroes from campaign are threated diferently?

EDIT: I don't think about "Virtual Pool", just for more heroes to choose, I think about heroes hired by players and they never need to push the limit. I don't mind if tavern code would stop for buing more heroes when enough is in the game. I'd like having more heroes too choose at game start more heroes from taverns and more campaign heroes.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
EnergyZ
EnergyZ


Legendary Hero
President of MM Wiki
posted June 30, 2016 11:11 PM

Are the existing heroes edited? If not, they could be replaced, I guess. Because I don't see much of a need for a hero, whose spell boosts spells like Magic Arrow, Haste and such spells. Maybe only in the beginning of any map, but not towards the end, even for a small map.
____________
Come and visit the Might and Magic Wikia!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted June 30, 2016 11:12 PM

This is wog forum, buddy. A hero with magic arrow specialty, we can make it to kill 1000 dragons with one.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
EnergyZ
EnergyZ


Legendary Hero
President of MM Wiki
posted June 30, 2016 11:16 PM

Better stop talking, then. I am not an expert in this stuff, anyway.
____________
Come and visit the Might and Magic Wikia!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted June 30, 2016 11:24 PM

Salamandre said:
This is wog forum, buddy. A hero with magic arrow specialty, we can make it to kill 1000 dragons with one.


How? it's level 1 spell, and dragons... uuh :F

-----

Wisdom Specialist gets 1 spellpower every level (or n levels) - subject to change
Scholar specialist learn new 5 level spell each of 5 herolevel

-----

sorry for offtopic

for discussing new and differed specialists please go to Knightmare mods thread, I would probably implement some of them. New/Changed skills also go here (sadly I can't remove 26 skill limit, but I may change old to do something more, even something that deserves for name change)

Here we discuss on Heroes pool limitations and trying how to rid of them. I think we Ideally have 255 heroes limit, and have them disabled like campaign ones, and config files to allow any hero to be started with if marked

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bloodsucker
bloodsucker


Legendary Hero
posted July 01, 2016 11:41 AM
Edited by bloodsucker at 11:49, 01 Jul 2016.

Salamandre said:
Meh, if you want a new pattern for Heroes, just expose a good idea then try to script it

I don't, I was following OxFea post. In the map I'm playing I reduced the number of available heroes and player and AI have separate pools, plus I've put 11 GOOD heroes in prisons. With all these limitations I still find enouch good heroes to fill the eight slots with amazing specialists and have most of the towns with a keeper giving me resources or money.
In Wog a script to trade the specialties can be made in a couple of hours, I have several. But if every game camed with a different setting of heroes with other specialties and secondary skills, you would have to wonder who else is in heroes pool before you decide who is a keeper and who will be dismissed with the start of a new week.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted July 22, 2016 06:54 PM

What would be harder? adding new town with no heroes or adding heroes pool with current faction // campaign heroes?

there is script with UN:C which replaces town partially (Dragon Peaks mod and similair)... maybe there should be workaround for heroes? is it possible to do heroes swapper? Is it possible to copy whole info on 1 hero and save it in external memory, then if we want new hero we would restore saved record? I could do a plugin for this. it would randomly swap heroes which are unused (not in player nor tavern). How hard will it be?

However I would prefer just to have extended hero table elsewhere

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0430 seconds