Support

Scripting: How to make hedgehogs look like winners?

How can I make hedgehogs look like winners (the "awesome" face, like after they have won a normal match) with Lua scripting only?

I have already tried to use this code:

SetState(myHedgehog, gstWinner)

And this:

SetState(myHedgehog, bor(GetState(myHedgehog), gstWinner))

Both won't work. The hedgehog just looks like a normal hedgehog.
I noticed that sometimes the "awesome" face appears when the hedgehog is also moving/flying around (but never when the hedgehog stands on the ground). I have no idea why.

Compiling Hedgewars-0.9.21 from source, a few problems (solved)

I'd like to describe a few problems I got while compiling Hedgewars-0.9.21 from source and the solutions which worked for me.

Quote:
$ uname -a
Linux localhost 2.6.32-alternative #1 SMP Wed Feb 4 07:00:51 MSK 2015 x86_64 GNU/Linux

It was the Debian "Squeeze" operating system, partially updated to "Wheezy"; the Kernel was compiled "by hands".

Out-of-tree building was used, in order to keep the source code clean:

Quote:
$mkdir build
$cd build
$cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/tmp" -DDATA_INSTALL_DIR="/tmp" -DNOVIDEOREC=1 ..

Off-topic: I wonder why the instruction for in-tree building, "cmake .", is given in the file "INSTALL": it is so uncomfortable...

Problem 0

The source code does not stay clean even in case of out-of-tree building: namely, the files "checkModule.hi" and "checkModule.o" appear in the subdirecotry "cmake_modules".

Solution: in the file "CheckHaskellModuleExists.cmake" after the 32-th line:

Quote:
-c "${CMAKE_MODULE_PATH}/checkModule.hs"

insert the following two lines:

Quote:
-odir ${CMAKE_CURRENT_BINARY_DIR}
-hidir ${CMAKE_CURRENT_BINARY_DIR}

Warning: afther this patching I did not find the files "checkModule.hi" and "checkModule.o" at all, but I was not lazy to check, the module still works correctly, raising an error if a function is absents.

Problem 1

To compile the Hedgewars-0.9.21 server, it is not sufficent to installthe packages mentioned in the "INSTALL" file.

How to do... Mission scripting

Hi, im doing some custom mission testing and want to know if there is a way (function) or else, to modify the global variables or game flags like indestructible terrain on others...

Using gamepad with key combinations

Hello,

my friends and I are frequently playing worms on PC with an PS2 emulator and a gamepad. Since the graphics is not very beautiful there, I installed hedgewars on my Windows 7 PC. However it is quite uncomfortable to hand around the keyboard and mouse so I also tried to use the gamepad. Almost everything works fine except the selection of the weapons.
My idea to solve this was to not only use the different keys alone for an action but to define something like a switching key. In practice I want to move the hedgehogs by using the analog stick and move the mouse by using the combination of holding a special button when moving the analog stick.

So my questions are:
1. Is it possible to do this in hedgewars, maybe by editing some configuration files?
2. If not, is it possible to use an external program that is "between" hedgewars and the controller? Is such a program available?

Thanks for your help in advance Smile.

I created one acount and the email never come to me....

I created one acount with the name Plerzk but the email never came to me ( to my email) and I never can use that nick cuz that thing says that is in use, but no one will use it(me).

Can you change my name user (this) to Plerzk?
or Can you send me the message to other email?

Syndicate content

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]