Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
48 Did I also mention that sailor can run on apache, Nginx, lighttpd and Xavante.

(With Xavante being the obvious choice for me due to the fact that it is a http server enterly written in lua and is lua module)
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
50 sailor is a mvc framework for web applications using lua.
Using sailor you can apparently even write lua instead of js when you need to write code for the browser to execute (Which is a very good thing because screw js)

apache, Nginx, lighttpd and Xavante. Are all http servers, apache is I believe the most used one.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
48 Did you know that dragons (in Dwarf Fortress, at least) are ridiculously hard to kill? If you've got a good sword or axe, you can sneak up behind them and whack their heads off with little difficulty... but if they see you, you're in trouble. If there's plenty of open space, you can sometimes sprint in a circle around them to dodge the fire, then go in for a kill while the firebreath is on cooldown... but if you get caught in the fire, you're going to die. You might be able to take the dragon down with you if you can decrepitate it before you bleed to death... but even that requires some luck.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
49 well, I am not surprised that dragons are hard to kill, I mean after all they are dragons.

In other news, I am doing something wrong apparently when trying to pass functions to the view using sailor
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
50 They'd be a lot harder to kill if their AI allowed them to keep their distance from their opponents to make the best use of the firebreath. As it is, they prefer to toast their opponents at first sight and then go in for melee.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 Well, for some reason the fact that they fight with that kind of makes sense. (except if according to the lore of that game dragons are super intelligent and stuff )

In other news, I even have trouble passing anything from controller to the view >_<

in the controller I have
function main.index(page)
local test = sailor.model( 'test' )
page:render("index", { msg = "Hello"})
end

then in the view I should be able to do
<?lua@server
page:write(msg)
?>
However this gives an error that claims that msg is a nil value.
I know that the code in the view is correct as
<?lua@server
page:write("some string")
?>
works >_<
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
51 Dragons are probably the most serious glass cannons among the DF megabeasts- while they can roast you at range with their breath, if you do get close enough to melee one, their heads are relatively easy to slice off with a good sword or axe blow. Also, they feel pain, so a mere chip to the skull will knock them out.

Hydras are annoying because they have seven heads and will attack you with all of them at once- so you have to decapitate them seven times to kill them. Or just deal enough damage that they bleed out.

Rocs... can fly. However, their melee range is no longer than yours, and you can attack an enemy that's above your head.

And bronze colossi are just tanks. They're made of solid bronze, have omnivision, and feel no fear or pain. Flukes like this aside, it takes a lot of hits to take one down, even with adamantine weapons.