• 0

    posted a message on Model Randomly Become Invisible In Low Quality

    The map I am maintaining uses model 「MoebiusLabDecals」 for decoration , which randomly becomes invisible if the player use low-quality setting.

    Each time a player with low-quality setting load the map, some of the models are missing.

    But the game debugger reports no error, so I suppose it does become invisible instead of not being created.

    If I repeat the action of creating models, the number of missing models will decrease, which confirms that it randomly become invisible. But multiply model in the same point will result in a different visual  effect, so I decide repeating is not a good solution.

     

     I wonder whether there is a way to set it visible in low quality. By the way, the map also uses model「Battle Station Number」, which does not have the problem.

    Posted in: Artist Tavern
  • 0

    posted a message on 「DialogControlIsVisible」reports unstable error as 「DialogControlGetPropertyAsBool」

    There is a Encyclopedia in the map I am maintaining. It has several category and each category has lots of entries which are dialog controls. When a player switches between pages, I use function 「DialogControlIsVisible」 to know if the entry ui of a position is under displaying, and decide the next step.

    However, when a dialog control is not visible, it do return FALSE, but reports error 「DialogControlGetPropertyAsBool cannot get for parameter "property" as 12」. I wonder that:

    <p>native bool DialogControlIsVisible (int control, int player);</p>
    <p>native bool DialogControlGetPropertyAsBool (int control, int property, int player);</p>
    <p>bool DialogControlIsVisible (int control, int player)<br />{<br /> return DialogControlGetPropertyAsBool (control, cINT_PROPETY_VISIBLITY,player);<br />}</p>

    How could it works properly while reporting a error? Does the galaxy editor relies on a bug to run?

    Plus, the error always and only occurs for the first 5 entries. That means when the number of entries of a category is not more than 5, every one of them reports this error. When the number of entries of a category is more than 5,  only the first 5 entries report this error.

    1. I output debug info and make sure the error is reported in the step of function 「DialogControlIsVisible」.

    2. I check the bound of the array and make sure there is no outbound problem.

    3. I out put debug info and make sure the dialog control is not NULL when use the function, and the parameter of player is OK.

    Is that another way to check the visibility of a dialog control? I believe I should not rely on a bug.

    Posted in: Triggers
  • 0

    posted a message on 「DialogControlIsVisible」reports unstable error as 「DialogControlGetPropertyAsBool」

    There is a Encyclopedia in the map I am maintaining. It has several category and each category has lots of entries which are dialog controls. When a player switches between pages, I use function 「DialogControlIsVisible」 to know if the entry ui of a position is under displaying, and decide the next step.

    However, when a dialog control is not visible, it do return FALSE, but reports error 「DialogControlGetPropertyAsBool cannot get for parameter "property" as 12」. I wonder that:

    <p>native bool DialogControlIsVisible (int control, int player);</p>
    <p>native bool DialogControlGetPropertyAsBool (int control, int property, int player);</p>
    <p>bool DialogControlIsVisible (int control, int player)<br />{<br /> return bool DialogControlGetPropertyAsBool (control, cINT_PROPETY_VISIBLITY,player);<br />}</p>

     

    How could it works properly while reporting a error? Does the galaxy editor relies on a bug to run?

    Plus, the error always and only occurs for the first 5 entries. That means when the number of entries of a category is not more than 5, every one of them reports this error. When the number of entries of a category is more than 5,  only the first 5 entries report this error.

     

    1. I output debug info and make sure the error is reported in the step of function 「DialogControlIsVisible」.

    2. I check the bound of the array and make sure there is no outbound problem.

    3. I out put debug info and make sure the dialog control is not NULL when use the function, and the parameter of player is OK.

    4. The problem that unease me most is how can it only happens for the first 5 dialog control?

    Posted in: Galaxy Scripting
  • 0

    posted a message on How do I change the loading screen of an extension mod?

    In reply to qmax2250:

     Hello. I met the same problem and I am seeking solution.

     I would like to learn from your mod, but your link is not working now.

     Could you tell me how to deal with it?

    Posted in: Triggers
  • 0

    posted a message on How do I change the loading screen of an extension mod?

    In reply to qmax2250:

     Hello. I met the same problem and I am seeking solution.

     I would like to learn from your mod, but your link is not working now.

     Could you tell me how to deal with it?

    Posted in: Triggers
  • 0

    posted a message on Function as parameter of a function

    I know simple c++ and function can be a parameter of another function.

    I wrote a function to operate on a date table and want it to suit different situations.

    I want it receive another function as a parameter so that it can use the function to judge dates.

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.