Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New areas #238

Closed
ShadoW2551 opened this issue Jan 15, 2024 · 7 comments
Closed

New areas #238

ShadoW2551 opened this issue Jan 15, 2024 · 7 comments

Comments

@ShadoW2551
Copy link

ShadoW2551 commented Jan 15, 2024

Hi
Is it possible to add new neutral terrains (but not as objects ) to the map editor to introduce more diversity for neutral units ;)?
(I am more concerned with instructions on how to accomplish this).
+How can you change the field of view for a single unit in the game files out of curiosity question ;)?

@VladimirMakeev
Copy link
Owner

Game engine tightly couples races (not players) with terrains. For each race mentioned in GRace.dbf there should be only one matching terrain LTerrain.dbf and vice versa. This is crucial for regeneration bonus on native terrain, for daily income, for spreading terrain after city capture etc.
Currently there are 5 playable races in the game and a neutrals. Neutrals contain many subraces such as greenskins, merfolk and dragons. If we want to add new terrain types specific to these subraces first of all we need to add additional unplayable races and move these subrace units from 'vanilla' neutrals. This way we can add a new terrains specific to these new 'neutral' races.

This is a lot of work, because not only it requires adding a new races to the game, but also treat them the same way neutrals are treated. Scenario Editor should also handle these new races as well: allow selecting units of these races, make them trigger events, paint new terrains etc.

I should also mention that because of a tile format it is possible to add only two new terrains without changing tiles.
There are only 3 bits allocated for terrain type allowing only 8 terrain and LTerrain.dbf already have 6 types which leaves us with only 2 new terrains possible.

If you look at Disciples II: Servants of the Dark or Guardians of the Light version of the game you can notice there are lot of unplayable races in GRace.dbf. I think developers had such idea with many neutral races and their terrains but later dropped it for some reason. These races are not handled by the engine, you can change their database records or even delete them without any observable effects and problems.

@InnerLight
Copy link

Thanks, Vladimir for detailed response. I wonder few weeks ago the same question :D

@ShadoW2551
Copy link
Author

Thanks for the answer.
Another one is: What do I need to do to add more battlefield art (appearing during battles) ;)?

@VladimirMakeev
Copy link
Owner

You will need to patch server-side logic which decides theme for battle background image and client-side logic where one of the background images selected randomly depending on theme.
This is a bit challenging task since DisciplesGL by Verok also patches server side logic to fix units hitboxes and wide screen battle.

@ShadoW2551
Copy link
Author

ShadoW2551 commented Jan 28, 2024

Hi
Are there any ways to strengthen, make a challenging/heavy bot in the game, if only by expanding capitals more often, or maybe there is a mod that does this hm ;)?

@VladimirMakeev
Copy link
Owner

Take a look at MNS mod.
It changes AI related databases which makes it more agressive and gives it additional benefits.

@ShadoW2551
Copy link
Author

Thanks!
Have a good day/night ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants