Wake of Gods Forum | Форум Во Имя Богов
Please Help! - Printable Version

+- Wake of Gods Forum | Форум Во Имя Богов (http://wforum.heroes35.net)
+-- Forum: Герои Меча и Магии 3.5 WoG/ERA (/forumdisplay.php?fid=99)
+--- Forum: Обсуждение WoG (/forumdisplay.php?fid=69)
+---- Forum: English subforum (/forumdisplay.php?fid=64)
+---- Thread: Please Help! (/showthread.php?tid=5017)


Please Help! - Cavorite - 09.03.2016 19:28

I am a map maker and have made several maps with my own scrips. I have a map that I have done and everything works fine except when I save the game and then load it in. When loaded, it appears that only WOG instructions work. No other scrips work at all. Can anyone please help me? This map is the last map of a real nice 5 map campaign.

Cavorite@hotmail.com


RE: Please Help! - Algor - 09.03.2016 22:09

Post here erm-part in



RE: Please Help! - Valery - 09.03.2016 23:59

Campaigns won't work in era 2 yet, is not a matter of script. Hopefully 2.55 will have campaign support I hope.


RE: Please Help! - Cavorite - 10.03.2016 07:47

(09.03.2016 22:09)Algor Wrote:  Post here erm-part in

I'm not sure what your asking? Please define.

I have several scripts like this one that do not work after a save game is loaded.
------------------------------------------------------
ZVSE

!#VRz183:S^Guard Hut^; *** Hint text
!#HT40/51:Tz183; *** set hint text for all objects
!#OB68/9/1:S; *** disable for all
!#OB68/9/1:E7; *** enable for pink


!?OB68/9/1; *** Object trigger

!!HE-1:N?v61; *** hero # in v61

!!IF:M^I can only let {Gunnar} pass this Guard Hut.^;

!!UN&v61=85:O68/9/1; *** delete Guard Hut if Gunnar
!!OB68/9/1&v61=85:B; *** remove hint text
-----------------------------------------------------------------

The instructions work and the objects have the correct hint texts and mouse over in the game, but the object trigger does not operate and the object acts as if it wern't there on the map.

The version I'm using is:
When I do a
!#UN:V?v5/?v6;

v5= 358 v6=0


RE: Please Help! - Cavorite - 13.03.2016 21:28

(09.03.2016 22:09)Algor Wrote:  Post here erm-part in

I'm not sure what you are asking? One of the scripts is above. After loading a game, the map is no longer WOGIFIED.


RE: Please Help! - gamecreator - 13.03.2016 22:21

(10.03.2016 07:47)Cavorite Wrote:  When I do a
!#UN:V?v5/?v6;
v5= 358 v6=0
AFAIK this is impossible in vanilla WoG. What is it patched with?


RE: Please Help! - Cavorite - 18.03.2016 06:31

(13.03.2016 22:21)gamecreator Wrote:  
(10.03.2016 07:47)Cavorite Wrote:  When I do a
!#UN:V?v5/?v6;
v5= 358 v6=0
AFAIK this is impossible in vanilla WoG. What is it patched with?

As far as I know it is not patched with any outside programs. Just
allinon1
and New_objects_ver_1_09.rar
I have Era 2.4 but I never use it and don't really know what the difference is?

The ERM help menu that explains the sentax of the commands says this at the top:
for WoG v3.58f and ERA, explaining ERM - Event Related Model v2.8.1

This is from the ERM help file: Under the UN: command

V ?$1/ ?$2; Gets the version of WoG and ERM being used.
    $1 version of WoG
    $2 version of ERM

Comments:
   You can only get or check but not set the values:
   e.g., !!UN:V?i/?j;

Recommendation:
Use the instruction !#UN:V to check version and then display a message for the player at the start of the map that they have an older version of the Add-on (if they do). This is better then them getting half way through the map before finding out they can't finish it.

The values returned are: 359/300 for ERA and TE, 358/281 for WoG 3.58f



RE: Please Help! - gamecreator - 18.03.2016 14:31

(18.03.2016 06:31)Cavorite Wrote:  This is from the ERM help file: Under the UN: command
I know that.
And in WoG source UN:V returns a fixed number. It is literally impossible for it to be anything other than its original value. Which is not 0, according to your quote of ERM help.


RE: Please Help! - Cavorite - 19.03.2016 08:34

(18.03.2016 14:31)gamecreator Wrote:  
(18.03.2016 06:31)Cavorite Wrote:  This is from the ERM help file: Under the UN: command
I know that.
And in WoG source UN:V returns a fixed number. It is literally impossible for it to be anything other than its original value. Which is not 0, according to your quote of ERM help.

I put this code in my map just so I could tell you what ver I was using. Neever the less this is what is returned from this command. I am willing to offer you the map and you can see for yourself.

PLEAS!

I dont't know whats going on. Thats why I need your help!


RE: Please Help! - gamecreator - 19.03.2016 11:27

So far you haven't provided any info whatsoever except UN:V output and a short script. I'm just working with what you gave me.
Now you are saying that you will show the map. You should have done it from the start.


RE: Please Help! - Valery - 19.03.2016 16:36

From what he relates -scripts work then stop working when reload game, it looks to me he has same problem as Era 2 when trying campaigns. It was fixed in 2.55 but isn't yet released because a sudden "phantom dispel" bug in battles vs AI. All applied spells duration become 1 round.


RE: Please Help! - gamecreator - 19.03.2016 17:53

Hm, somehow overlooked him mentioning it's a campaign. Then you are right, it's a know bug.


RE: Please Help! - Cavorite - 24.03.2016 19:15

(19.03.2016 17:53)gamecreator Wrote:  Hm, somehow overlooked him mentioning it's a campaign. Then you are right, it's a know bug.

I know this map is part of a campaign BUT I am testing this map as a single map. How can I give you the map so you can see for yourself what is going on? I fixed an error and now it returns ERM= 281. The map still doesn't work after a load???

At the start I have a script that checks to see if the player has 8 heroes and replaces missing ones. After a load, the map says this script has wrong syntax and is skipped. I think it skipps all scripts except instructions. Script below:




RE: Please Help! - gamecreator - 24.03.2016 23:04

I see. You just don't know what !?GE does. Here is a quote from ERM help:
Quote:This is a "global" event with number #.
The # must be first in the Event text (the event title doesn't matter).
This number WON'T APPEAR later in message text in the game as long as it's used by a trigger.
Example:
Global event with text "1230There you are!" transforms to "There you are!" with number 1230.



RE: Please Help! - Cavorite - 26.03.2016 18:04

(24.03.2016 23:04)gamecreator Wrote:  I see. You just don't know what !?GE does. Here is a quote from ERM help:
Quote:This is a "global" event with number #.
The # must be first in the Event text (the event title doesn't matter).
This number WON'T APPEAR later in message text in the game as long as it's used by a trigger.
Example:
Global event with text "1230There you are!" transforms to "There you are!" with number 1230.

YES I understand that, and I do have an event with that # and it works fine until you load a game. The ERM help doesn't say that it won't work after loading a game!


RE: Please Help! - gamecreator - 26.03.2016 21:42

It works for me. Are you sure you checked this for a standalone map?


RE: Please Help! - Cavorite - 30.03.2016 08:24

(26.03.2016 21:42)gamecreator Wrote:  It works for me. Are you sure you checked this for a standalone map?

I play a single map game, then save the map and reload the map. After the reload only instructions work and the map no longer is WOGIFIED because even quick battles and other WOG features do not function.

If I knew how, I would gladly give you the map to try for yourself!

I've never encontoured this before.?????


RE: Please Help! - Valery - 30.03.2016 10:05

But if the maps have internal scripts, usually they are not wogified when start, you even receive a message warning. Anyhow, either your wog is a mess or some bug with GE trigger.

I would suggest upgrading to Era because it is so easier to debug if problems.


RE: Please Help! - gamecreator - 30.03.2016 16:50

(30.03.2016 08:24)Cavorite Wrote:  I play a single map game, then save the map and reload the map. After the reload only instructions work and the map no longer is WOGIFIED because even quick battles and other WOG features do not function.
Works for me. Put your script into the map, wogified it. WoG features are working. Saved, loaded the save. Still working. Restarted the game, loaded the save. Still WoG scripts are present and working.
(30.03.2016 08:24)Cavorite Wrote:  If I knew how, I would gladly give you the map to try for yourself!
Upload it somewhere and post a link here.


RE: Please Help! - Cavorite - 05.04.2016 06:19

(30.03.2016 16:50)gamecreator Wrote:  
(30.03.2016 08:24)Cavorite Wrote:  I play a single map game, then save the map and reload the map. After the reload only instructions work and the map no longer is WOGIFIED because even quick battles and other WOG features do not function.
Works for me. Put your script into the map, wogified it. WoG features are working. Saved, loaded the save. Still working. Restarted the game, loaded the save. Still WoG scripts are present and working.
(30.03.2016 08:24)Cavorite Wrote:  If I knew how, I would gladly give you the map to try for yourself!
Upload it somewhere and post a link here.

Here is the map.

http://www.maps4heroes.com/heroes3/maps.php?keywords=Ron+Dye&type=&size=&difficulty=&sort=2

Played as a single map it will make you get 6 new heroes at the start.

All the "Guard Huts" work fine BUT...Save the game then load it and things go wrong.


RE: Please Help! - gamecreator - 05.04.2016 14:45

Wasn't able to start your map - there are mod objects in it. But from the look of your scripts, guard huts should never work. Not before saving the game, not after loading it. They have incorrect coordinates.


RE: Please Help! - Valery - 05.04.2016 16:23

Is it normal that under GM0 you reload the dat file? I released 3 wog maps using a dat file and I never had to script the load game. Maybe is this which blocks other scripts?

And yes, you used new objects patch. Really, go to Era because as now people must download new things to play your maps then they can't uninstall them.


RE: Please Help! - Cavorite - 06.04.2016 22:28

(05.04.2016 16:23)Valery Wrote:  Is it normal that under GM0 you reload the dat file? I released 3 wog maps using a dat file and I never had to script the load game. Maybe is this which blocks other scripts?

And yes, you used new objects patch. Really, go to Era because as now people must download new things to play your maps then they can't uninstall them.

I added the GM0 script to see if it would help. That "Load Game" script does nothing. ERA does NOT work!!! I tried to play the map with ERA and before the map loaded, it said a script that is not in the map had the wrong syntax and it said my scripts are too long.

I made this map so it could be wogified. There are no conflict with the varriables and other scripts.
So what you are saying is that I need to delete WOG from my computer and re-install it without any add ons???


RE: Please Help! - Cavorite - 06.04.2016 22:35

(05.04.2016 14:45)gamecreator Wrote:  Wasn't able to start your map - there are mod objects in it. But from the look of your scripts, guard huts should never work. Not before saving the game, not after loading it. They have incorrect coordinates.

I checked all the huts and they are all correct coordinates. Plus, they work fine untill you save and load a game.
Which one do you think has the wrong coords?


RE: Please Help! - Valery - 06.04.2016 23:09

(06.04.2016 22:28)Cavorite Wrote:  So what you are saying is that I need to delete WOG from my computer and re-install it without any add ons???

You installed "new objects patch" over your wog then made a map with. but you didn't specify in map description that the user need to download that patch, so your map is unplayable as it is. Either you notify the players that they need to install additional graphics (which will irremediably alter their wog 3.58) or you upgrade to era, where that patch comes as on/off mod.

I don't have anymore wog 3.58 so can't test but I see no reason you wouldn't update to era, the errors you get come possibly from multiple exclamation signs (more than 2), which era considers as notify error. if you delete all "!!!" or more of them then errors will be gone.


RE: Please Help! - gamecreator - 07.04.2016 00:57

(06.04.2016 22:35)Cavorite Wrote:  Which one do you think has the wrong coords?
The first three for sure, I assumed others do as well.

(06.04.2016 22:28)Cavorite Wrote:  So what you are saying is that I need to delete WOG from my computer and re-install it without any add ons???
You can have multiple versions of WoG (or any other HoMM3 variation) simultaneously.


RE: Please Help! - Cavorite - 10.04.2016 22:41

(06.04.2016 23:09)Valery Wrote:  
(06.04.2016 22:28)Cavorite Wrote:  So what you are saying is that I need to delete WOG from my computer and re-install it without any add ons???

You installed "new objects patch" over your wog then made a map with. but you didn't specify in map description that the user need to download that patch, so your map is unplayable as it is. Either you notify the players that they need to install additional graphics (which will irremediably alter their wog 3.58) or you upgrade to era, where that patch comes as on/off mod.

I don't have anymore wog 3.58 so can't test but I see no reason you wouldn't update to era, the errors you get come possibly from multiple exclamation signs (more than 2), which era considers as notify error. if you delete all "!!!" or more of them then errors will be gone.

Where are these !!!'s ??? As I said the map does not work in ERA at all. Unless there is a new ERA that I don't know about, I don't see any difference between ERA and 3.58??? I think your are confusing !!IF with !!!F There are NO !!! in the map.


RE: Please Help! - Cavorite - 10.04.2016 22:56

(07.04.2016 00:57)gamecreator Wrote:  
(06.04.2016 22:35)Cavorite Wrote:  Which one do you think has the wrong coords?
The first three for sure, I assumed others do as well.

(06.04.2016 22:28)Cavorite Wrote:  So what you are saying is that I need to delete WOG from my computer and re-install it without any add ons???
You can have multiple versions of WoG (or any other HoMM3 variation) simultaneously.

Perhaps you have a different coordinates sceme on your map editor because I have checked all the Guard Huts and they are all correct coords plus they all work fine when I play the game until I save. I don't understand how you could think they are wrong.


RE: Please Help! - gamecreator - 10.04.2016 23:32

(10.04.2016 22:56)Cavorite Wrote:  Perhaps you have a different coordinates sceme on your map editor
What scheme? There are no "coordinate schemes", coordinates are unambiguous.

(10.04.2016 22:56)Cavorite Wrote:  I don't understand how you could think they are wrong.
This is how:
Image: wronghut.png


RE: Please Help! - Cavorite - 24.04.2016 08:10

(10.04.2016 22:56)Cavorite Wrote:  I don't understand how you could think they are wrong.
This is how:
Image: wronghut.png
[/quote]
Well I understand now. You are looking at the "Borderguards" This one is tan. I am talking about the decorative objects that I have named "Guard Huts" in the scrips. The object does not show up in your pic of the map.


RE: Please Help! - gamecreator - 24.04.2016 11:25

Then I can't help. Your modded object could be anything. You are on your own here.