Fog of war FreeGame

Technische Hilfestellungen rund um SpellForce 2

Moderator: Forum_Manager

User avatar
NeoX
Administrator
Posts: 240
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Sat 17. Feb 2024, 17:12 _P333_Westguard.lua
Habe dir das script mal beigelegt
Schau mal ob du evtl. die main-script datei findest. Sonst mal hier versuchen, hab die funktion am ende eingefügt.
(Koordinaten musst du machen)

Grüße: NeoX
You do not have the required permissions to view the files attached to this post.
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

habe ich eingefügt und es kommt dieselbe fehlermeldung, ich wüsste nun nicht wo ich die main script datei finde, aber habe auf der zweiten map ( rushwater downs) eine main state, habe es wie geschrieben davor eingefügt aber selbst dort kommt diese fehlermeldung, hänge dir die einmal bei
You do not have the required permissions to view the files attached to this post.
User avatar
NeoX
Administrator
Posts: 240
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Sat 17. Feb 2024, 20:13 habe ich eingefügt und es kommt dieselbe fehlermeldung, ich wüsste nun nicht wo ich die main script datei finde, aber habe auf der zweiten map ( rushwater downs) eine main state, habe es wie geschrieben davor eingefügt aber selbst dort kommt diese fehlermeldung, hänge dir die einmal bei
schaue mal ob du die Koordinaten nicht zu hoch ansetzt. Oh und ich weis den Fehler. Da wurde eine Klammer zu viel kopiert.
Lade mal die letzte westguard-lua nochmal runter. Habe die Klammer zuviel entfernt.

So passt das jetzt:

Code: Select all

          	
          	OnOneTimeEvent
          	{
                    		Conditions = 
                    		{
                              	    	-- fill_me
                              		},
                    	         Actions = 
                    	         {	

                       		           FogOfWarReveal
                                         {
                                            FogOfWarId = 0,  -- Die 'ID' einer Fog of War 'Aufdeckungs-Position' (default = 0).
                                            X = 000.00, Y = 000.00, -- deine Koordinaten
                                            Range = 100,        -- Der Radius der Abfrage in Gridpunkten.
                                            Height = 3,      -- Die Höhe über dem Boden (Sichtpunkt für FogOfWarReveal).
                                        },

										
                                   },
    
          };
          
Grüße: NeoX
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

Ich danke dir es war wirklich diese eine olle klammer, nun funktioniert es wunderbar:D und den code kann ich beliebig oft einfügen mit anderen koordinaten richtig?
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

Westguard kommt weiterhin die fehlermeldung, bei den anderen maps wo es ein stage main code gibt funktioniert es O.o
User avatar
NeoX
Administrator
Posts: 240
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Sat 17. Feb 2024, 20:26 Ich danke dir es war wirklich diese eine olle klammer, nun funktioniert es wunderbar:D und den code kann ich beliebig oft einfügen mit anderen koordinaten richtig?
ja, bis du eine maximale Zeilenanzahl/Scriptlänge von 40.000 Zeilen erreichst, aber ich denke bis dahin sollte jede map komplett aufgedeckt sein ^^. Denk dran, du musst nur den Reveal-Fog Befehl kopieren mit anderen Koordinaten. Die können ruhig alle in die selbe "OnOneTimeEvent"
funktion rein.

Grüße: NeoX
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
User avatar
NeoX
Administrator
Posts: 240
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Sat 17. Feb 2024, 20:32 Westguard kommt weiterhin die fehlermeldung, bei den anderen maps wo es ein stage main code gibt funktioniert es O.o
Schaue mal auf die Klammer zu viel.

Grüße: NeoX
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

habe ich gemacht mit der klammer, funktioniert nicht XD, generell funktioniert es nur auf den maps wo im lua ein state main ist
User avatar
NeoX
Administrator
Posts: 240
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Sat 17. Feb 2024, 20:39 habe ich gemacht mit der klammer, funktioniert nicht XD, generell funktioniert es nur auf den maps wo im lua ein state main ist
Schaue mal ob du auch wirklich die richtige Stelle erwischt hast. Sonst mal original wieder herstellen und nochmal gesichert einfügen.
Habs selbst bei der Coop-Westwehr (basegame) probiert und funktioniert (siehe Anhang).

Grüße: NeoX
You do not have the required permissions to view the files attached to this post.
SpellForce 2 - Master of War | SpellForce - Wiki & Info Hub
Image Image
"SpellForce 2 - Master of War" is the legendary Card-Game of the SpellForce 2 Collectors Edition of 2006, now finally for PC and Android! Play against the NPC, another Player or Online. Over 100 different Cards out of 7 factions and more than 10 powerfull spells to support them. Many hours of tactical turn based gameplay await you.
http://www.sf2-mow.keepfree.de/
- - -
"SpellForce - Fan Hub & Wiki" (for Android devices) is the official SpellForce fan hub app with wiki and forum integration made by the Fan Community. Get updated with the latest SpellForce news all around the game and its community. Look up knowlege in the wiki about lore and game guides. Exchange yourself with others on the fan forum. Made by the Community for the Community.
https://play.google.com/store/apps/details?id=com.it_huskys.spellforce_hub_wiki
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

keine ahnung wo der fehler war aber nun klappt es :D nochmal herzlichen dank :)
Post Reply

Return to “SpellForce 2 - Technischer Support”