Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 7:44 am
All times are UTC + 0
Change TemplateType / Cell-graphics ingame? Works only 50%?
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
yuri624
Civilian


Joined: 24 Aug 2021

PostPosted: Wed Sep 01, 2021 10:54 am    Post subject:  Change TemplateType / Cell-graphics ingame? Works only 50%?
Subject description: Works in old-school graphics but not in the remastered one?
Reply with quote  Mark this post and the followings unread

So I try to change the template type of a cell ingame. This is on the Desert theme, going from an empty, passable cell to an impassable brush.

Code:
   CellClass * cellptr = &Map[257];
   struct {
      TemplateType TType;      // Template type.
      unsigned char TIcon;      // Template icon number.
   } temp;
   temp.TType = TEMPLATE_BRUSH1;
   temp.TIcon = 0;
   cellptr->TType = temp.TType;
   cellptr->TIcon = temp.TIcon;
   cellptr->Recalc_Attributes();
   Map.Flag_Cell(257);


After triggering this code the cell is no longer passable as it should be.
In the classic graphics the cell gets correctly updated (both the passable status and the GRAPHIC itself), but in the remastered graphics it does NOT (not GRAPHIC update).

What am I missing here?

Last edited by yuri624 on Fri Sep 03, 2021 1:26 pm; edited 1 time in total

Back to top
View user's profile Send private message
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Thu Sep 02, 2021 11:09 am    Post subject: Reply with quote  Mark this post and the followings unread

The Remaster graphics side is strange; it has a system of cell graphics overrides that was used to patch up bad cliff connections and such in the original maps.

So while classic terrain displays everything exactly like it is in the game, there's a lot more going on on the GlyphX side than just the raw map, and it may just be that it caches these graphics, so changing the map cell has no effect on it.

Do remember the GlyphX side is a black box; we can only affect its behaviour through xml files, but it can never be truly modded like the core game can.

_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1538s ][ Queries: 11 (0.0071s) ][ Debug on ]