Fog of war FreeGame

Technische Hilfestellungen rund um SpellForce 2

Moderator: Forum_Manager

chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Fog of war FreeGame

Post by chillgo »

hey how can i disable the fog of war in freegame mode? can i add something to the lua script or does someone have an mod for this? :(
hey wie kann ich FOW deaktivieren bzw die ganze karte aufdecken hat da jemand eine idee oder eine mod für?
User avatar
NeoX
Administrator
Posts: 245
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Thu 15. Feb 2024, 21:19 hey how can i disable the fog of war in freegame mode? can i add something to the lua script or does someone have an mod for this? :(
hey wie kann ich FOW deaktivieren bzw die ganze karte aufdecken hat da jemand eine idee oder eine mod für?
Es gibt einen konsolen befehl, der ist im Multiplayer leider deaktiviert (die Konsole).
Wenn du willst kannst du aber das Lua-Script jeder map anpassen und "live aufdeckung" an mehreren punkten platzieren.
Der Code dafür ist:

Code: Select all

FogOfWarReveal
                              {
                                            FogOfWarId = 0,  -- Die 'ID' einer Fog of War 'Aufdeckungs-Position' (default = 0).
                                        X = 000.00, Y = 000.00, -- Coordinaten
                                            Range = 100,        -- Der Radius der Abfrage in Gridpunkten.
                                            Height = 3,      -- Die Höhe über dem Boden (Sichtpunkt für FogOfWarReveal).
                                        },
Da die maximale Größe leider begrenzt ist, musst du soviele nebeneinander mit abstand setzen bis du die ganze map abdeckst.

Hoffe das wird dir helfen! Wenn du mehr Befehle suchst, nutze den "Spell-Scripter" die SpellForce 2 Lua Script IDE mit integrierter funktionsdatenbank.
viewtopic.php?t=152

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 »

hey ja das hilft schonmal und wo genau füge ich das ein? habe das gerade ins lua script der map eingefügt und bekomme dann eine fehlermeldung wo gefühlt 20 verschiedene sachen stehen
User avatar
NeoX
Administrator
Posts: 245
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Fri 16. Feb 2024, 21:37 hey ja das hilft schonmal und wo genau füge ich das ein? habe das gerade ins lua script der map eingefügt und bekomme dann eine fehlermeldung wo gefühlt 20 verschiedene sachen stehen
diese Funktion (inklusive anpassungen der coordinaten) muss in eine event-funktion eingefügt werden am anfang oder am ende VOR dem main state.

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).
                                        },

										
                                   },
    
          };
          
Das fügst du ein BEVOR du diese code zeile siehst:

Code: Select all


State
{
          	StateName = "MAIN",
Am besten eine Zeile drüber und nicht in die Klammern einer anderen Funktion.

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 »

es kommt dieselbe fehlermeldung https://ibb.co/Hq5mmZ1
User avatar
NeoX
Administrator
Posts: 245
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi,
chillgo wrote: Fri 16. Feb 2024, 23:07 es kommt dieselbe fehlermeldung https://ibb.co/Hq5mmZ1
Du scheinst den syntax zerstört zu haben. Stelle die originale Datei/Script wieder her und mache nur das was ich oben geschrieben habe an besagter stelle.

Oh und du kannst hier Bilder auch direkt posten oder verlinken, da muss man keine 3rd party links öffnen.

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 »

so hab nun das ganze spiel einmal neu installiert keine einzige mod oder ähnliches, und bekomme nun eine noch größere fehlermeldung :D
Bilder im anhang
You do not have the required permissions to view the files attached to this post.
User avatar
NeoX
Administrator
Posts: 245
Joined: Thu 3. Nov 2022, 07:47

Re: Fog of war FreeGame

Post by NeoX »

hi.
chillgo wrote: Sat 17. Feb 2024, 01:47 so hab nun das ganze spiel einmal neu installiert keine einzige mod oder ähnliches, und bekomme nun eine noch größere fehlermeldung :D
Bilder im anhang
ja richtig, du hast die funktion vor den INIT-State gesetzt, ich sagte aber du sollst sie unten vor den MAIN-state setzen ;-)

Code: Select all

State
{
          	StateName = "MAIN",
          	
Vor diesen beiden Zeilen.

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 »

Bei mir ist dort nirgends ein main state :/ nur der init und nach den ganzen event ist die lua vorbei
chillgo
Posts: 11
Joined: Wed 31. Jan 2024, 03:48

Re: Fog of war FreeGame

Post by chillgo »

_P333_Westguard.lua

Habe dir das script mal beigelegt
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “SpellForce 2 - Technischer Support”