Wyrmsun Thunder
Re: Wyrmsun Thunder
Wargus Ais now work. Nephrite didn't have any trouble with me.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Re: Wyrmsun Thunder
Cool! I looked into your UI code to see why the lumber and oil icons aren't appearing, and you defined their "IconFrame" as being 1 and 2 respectively. It should be 0 for both (since they have an image file of their own, instead of being the second or third frame of an image file with all the resource icons). You also don't need to use "lumber.png" for oil: there is already an icon for oil in Wyrmsun (it is just unused at the moment). You could use "oil.png", or "fuel.png", both would fit.Kyran wrote:Wargus Ais now work. Nephrite didn't have any trouble with me.
Re: Wyrmsun Thunder
Now unit-hero-female causes the game to crash. I don't see any reason why, the unit is a direct copy and past from one that works. To see the crash load up Coastal Crusade, and look at White's second herbalist.
- Attachments
-
- screen01.png (313.56 KiB) Viewed 11227 times
-
- WT3.zip
- (5.11 MiB) Downloaded 465 times
Last edited by Kyran on Mon Mar 30, 2015 12:47 pm, edited 1 time in total.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Re: Wyrmsun Thunder
nice, I managed to snag that WT3 file before it was removed, and it looks promising. But it crashed with a bunch of invalid map tile errors when I used it with the latest wyrmsun commit. I think that might have been caused by the maps using the forest tileset. The new seasonal tree graphic code makes old forest maps get those errors, and I'm not sure how to update the old forest maps to allow for the seasonal tree changes. If you had maps using a non-forest tileset, I would guess it wouldn't get those errors.
edit:
I made a copy of one of the new forest tileset lua's and renamed it to the old forest.lua name and it fixed the problem.
edit:
I made a copy of one of the new forest tileset lua's and renamed it to the old forest.lua name and it fixed the problem.
Re: Wyrmsun Thunder
To update old forest maps it's just a matter of replacing in the map's .sms file "LoadTileModels("scripts/tilesets/forest.lua")" with "LoadTileModels("scripts/tilesets/conifer_forest_summer.lua")". To get a random season, though, replace it with this instead:b_o wrote:nice, I managed to snag that WT3 file before it was removed, and it looks promising. But it crashed with a bunch of invalid map tile errors when I used it with the latest wyrmsun commit. I think that might have been caused by the maps using the forest tileset. The new seasonal tree graphic code makes old forest maps get those errors, and I'm not sure how to update the old forest maps to allow for the seasonal tree changes. If you had maps using a non-forest tileset, I would guess it wouldn't get those errors.
edit:
I made a copy of one of the new forest tileset lua's and renamed it to the old forest.lua name and it fixed the problem.
Code: Select all
if (SyncRand(2) == 0) then
LoadTileModels("scripts/tilesets/conifer_forest_summer.lua")
else
LoadTileModels("scripts/tilesets/conifer_forest_autumn.lua")
end
Re: Wyrmsun Thunder
I tested it, and it seems that it is something related to units being summoned that way in general, rather than that unit type in particular. If I replace unit-female-hero with something else in the build order, it crashes too when moving the mouse towards them.Kyran wrote:Now unit-hero-female causes the game to crash. I don't see any reason why, the unit is a direct copy and past from one that works. To see the crash load up Coastal Crusade, and look at White's second herbalist.
Re: Wyrmsun Thunder
You probably just replaced the defective unit with another defective unit. If I place unit-female-hero on a new map it still crashes. I renamed it unit-female and it works. Mm! I renamed it unit-hero and it crashes again!Andrettin wrote:I tested it, and it seems that it is something related to units being summoned that way in general, rather than that unit type in particular. If I replace unit-female-hero with something else in the build order, it crashes too when moving the mouse towards them.
OK, so the game will crash if the unit has hero in the name.
Working:
- unit-arthor-literios
- unit-white-mage
- unit-flying-angel
- unit-man-of-light
- unit-knight-rider
- hero
- unit-hero
- unit-female-hero
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Re: Wyrmsun Thunder
Ah, of course! I completely forgot - Wyrmsun uses there being "hero" in the ident to see whether a unit type is a hero or not (for things like hero persistency, etc.). I changed it so that heroes are now identified by a "Hero" boolflag.Kyran wrote:You probably just replaced the defective unit with another defective unit. If I place unit-female-hero on a new map it still crashes. I renamed it unit-female and it works. Mm! I renamed it unit-hero and it crashes again!Andrettin wrote:I tested it, and it seems that it is something related to units being summoned that way in general, rather than that unit type in particular. If I replace unit-female-hero with something else in the build order, it crashes too when moving the mouse towards them.
OK, so the game will crash if the unit has hero in the name.
Working:Broken:
- unit-arthor-literios
- unit-white-mage
- unit-flying-angel
- unit-man-of-light
- unit-knight-rider
- hero
- unit-hero
- unit-female-hero
Re: Wyrmsun Thunder
Skype finally downloaded the messages of the last couple of days, and I saw what you mentioned about a couple of functions there now.
I made info_panel_x and info_panel_y global variables now (defined at stratagus.lua), meaning that you just need to redefine them and then load /scripts/ui.lua and it should work. For function SetupPlayer(player, race, ai, gold, lumber, oil, x, y), why don't you just redefine it in the mod's main file? That should work without any problems.
I made info_panel_x and info_panel_y global variables now (defined at stratagus.lua), meaning that you just need to redefine them and then load /scripts/ui.lua and it should work. For function SetupPlayer(player, race, ai, gold, lumber, oil, x, y), why don't you just redefine it in the mod's main file? That should work without any problems.
Re: Wyrmsun Thunder
Genius.Andrettin wrote:I made info_panel_x and info_panel_y global variables now (defined at stratagus.lua), meaning that you just need to redefine them and then load /scripts/ui.lua and it should work. For function SetupPlayer(player, race, ai, gold, lumber, oil, x, y), why don't you just redefine it in the mod's main file? That should work without any problems.
Here is another one for you.
Code: Select all
DefineSpell("spell-unit-footman",
"showname", "Footman",
"res-cost", {0, ftm_cost_gold[1], ftm_cost_wood[1], ftm_cost_oil[1], 0, 0, 0, 0, 0, 0},
"range", 6,
"target", "position",
"action", {
{"summon", "unit-type", "unit-footman", "time-to-live", 99000},
{"spawn-missile", "missile", "missile-magic-effect", "start-point", {"base", "target"}}},
"sound-when-cast", "magic-holy"
)
Code: Select all
DefineSpell("spell-unit-footman2",
"showname", "Footman",
"res-cost", {0, ftm_cost_gold[1], ftm_cost_wood[1], ftm_cost_oil[1], 0, 0, 0, 0, 0, 0},
"range", 6,
"target", "position",
"action", {
{"summon", "unit-type", "unit-footman", "time-to-live", 99000},
{"spawn-missile", "missile", "missile-magic-effect", "start-point", {"base", "target"}}},
"sound-when-cast", "magic-holy"
)
- Attachments
-
- WT4.zip
- (5.14 MiB) Downloaded 462 times
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me