project-navigation
Personal tools

Author Topic: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?  (Read 12842 times)

odie

  • Guest
Lastly, i am still baffled by this thing - I have a USB controller (11 buttons - Playstation styled) attached. It seemed to be detected. Running on WINXP SP3, fully patched. Its on a laptop though, so the keys might be a bit different. Either way.....

I tried to enter battle, and use the keyboard LEFT RIGHT key to rotate battlefield. However, it seemed to swing (rotate) wildly for a while and totally not be responsive to the buttons (LEFT RIGHT) anymore. I tried to move and can still give command and all.......

I tried to use the controller to command - it works.

I tried to disable the controller (gamepad - by pulling it out) and restarting game - the rotate still did not function properly. I tried to restart windows w/o the controller, and still the LEFT RIGHT rotate did not work.


Hmmmm..... perhaps something about the PAN and ROTATE functions keybinding?

Offline Kenner

  • Rookie
  • ***
  • Posts: 35
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #1 on: January 07, 2009, 02:35:08 pm »
Lastly, i am still baffled by this thing - I have a USB controller (11 buttons - Playstation styled) attached. It seemed to be detected. Running on WINXP SP3, fully patched. Its on a laptop though, so the keys might be a bit different. Either way.....

I tried to enter battle, and use the keyboard LEFT RIGHT key to rotate battlefield. However, it seemed to swing (rotate) wildly for a while and totally not be responsive to the buttons (LEFT RIGHT) anymore. I tried to move and can still give command and all.......

I tried to use the controller to command - it works.

I tried to disable the controller (gamepad - by pulling it out) and restarting game - the rotate still did not function properly. I tried to restart windows w/o the controller, and still the LEFT RIGHT rotate did not work.


Hmmmm..... perhaps something about the PAN and ROTATE functions keybinding?

I noticed the same thing. The game is still very much in development mode, so you can expect lots of bugs like this to appear now and then. For now, we'll just have to avoid rotating the battlefield, while the developers squash some other (bigger) bugs.

Ken

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #2 on: January 07, 2009, 02:56:03 pm »
I have a USB pad hooked up (PS2 controller actually), and it behaves normally for me. I can rotate the battlefield with the right analog stick and the cursor keys on the keyboard as normal. I'm on r21624.

I did notice the gamepad treshold is set very low by default, though. Have you tried increasing it?

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #3 on: January 07, 2009, 08:02:01 pm »
I think you got this one wrong BTAxis, they are saying, that their keybord doen't work, but that their controler does.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #4 on: January 08, 2009, 12:02:57 am »
Yeah, but the keyboard works for me as well.

odie

  • Guest
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #5 on: January 08, 2009, 03:40:12 am »
I have a USB pad hooked up (PS2 controller actually), and it behaves normally for me. I can rotate the battlefield with the right analog stick and the cursor keys on the keyboard as normal. I'm on r21624.

I did notice the gamepad treshold is set very low by default, though. Have you tried increasing it?

This is interesting.... i am on an older version, maybe 21624 fixed it.... i did try maxing even the threshold, it just spins alot faster initially and died eventually (5 secs). lol.

Btw, i was always wondering how u download the 21624?
Is there a link u can point me to as to how to d/l this release??

Thanks BTAxis.


odie

  • Guest
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #7 on: January 09, 2009, 03:48:14 am »
http://ufoai.ninex.info/wiki/index.php/Getting_the_source

DuKe2112,

That was not helpful at all.... as i would obviously read that. lol.

Okie, to anyone who can help, here's what i have done again....

1) I have d/l tortiseSVN, installed that successfully.
2) Downloaded the whole SVN and updated it today (21655). <see attached 21655.jpg>
3) I have tried to right clik on the installer.nsi <see attached Tortise SVN Compile Error.jpg>
4) Error as per:

Code: [Select]
MakeNSIS v2.42 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
 - AdvSplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - NSISdl::download
 - NSISdl::download_quiet
 - Splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - nsDialogs::Create
 - nsDialogs::CreateControl
 - nsDialogs::CreateItem
 - nsDialogs::CreateTimer
 - nsDialogs::GetUserData
 - nsDialogs::KillTimer
 - nsDialogs::OnBack
 - nsDialogs::OnChange
 - nsDialogs::OnClick
 - nsDialogs::OnNotify
 - nsDialogs::SelectFileDialog
 - nsDialogs::SelectFolderDialog
 - nsDialogs::SetRTL
 - nsDialogs::SetUserData
 - nsDialogs::Show
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\SVN Update\src\ports\windows"

Processing script file: "C:\SVN Update\src\ports\windows\installer.nsi"
!define: "PRODUCT_NAME"="UFO:Alien Invasion"
!define: "SHORT_PRODUCT_NAME"="UFO:AI"
!define: "PRODUCT_NAME_DEDICATED"="UFO:Alien Invasion Dedicated Server"
!define: "PRODUCT_VERSION"="2.3-dev"
!define: "PRODUCT_PUBLISHER"="UFO:AI Team"
!define: "PRODUCT_WEB_SITE"="http://ufoai.sf.net"
!define: "PRODUCT_DIR_REGKEY"="Software\UFOAI\ufo.exe"
!define: "PRODUCT_UNINST_KEY"="Software\Microsoft\Windows\CurrentVersion\Uninstall\UFO:Alien Invasion"
!define: "PRODUCT_UNINST_ROOT_KEY"="HKLM"
SetCompressor: lzma
!include: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (C:\Program Files\NSIS\Contrib\Modern UI\System.nsh:8)
!define: "MUI_INCLUDED"=""
!define: "MUI_SYSVERSION"="1.8"
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Include\LogicLib.nsh"
!include: closed: "C:\Program Files\NSIS\Include\LogicLib.nsh"
ShowInstDetails: nevershow
ShowUninstDetails: nevershow
!define: "MUI_ABORTWARNING"=""
!define: "MUI_ICON"="..\..\..\build\projects\ufo.ico"
!define: "MUI_UNICON"="..\..\..\build\projects\ufo.ico"
!define: "MUI_LANGDLL_REGISTRY_ROOT"="HKLM"
!define: "MUI_LANGDLL_REGISTRY_KEY"="Software\Microsoft\Windows\CurrentVersion\Uninstall\UFO:Alien Invasion"
!define: "MUI_LANGDLL_REGISTRY_VALUENAME"="NSIS:Language"
!define: "MUI_WELCOMEFINISHPAGE_BITMAP"="..\..\..\build\installer.bmp"
Var: "GAMEFLAGS"
Var: "MAPFLAGS"
Var: "GAMETEST"
Var: "MAPTEST"
Var: "GAMEICONFLAGS"
Var: "MAPICONFLAGS"
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!define: "MUI_LICENSEPAGE_CHECKBOX"=""
!insertmacro: MUI_PAGE_LICENSE
!insertmacro: end of MUI_PAGE_LICENSE
!define: "MUI_COMPONENTSPAGE_SMALLDESC"=""
!insertmacro: MUI_PAGE_COMPONENTS
!insertmacro: end of MUI_PAGE_COMPONENTS
!define: "MUI_DIRECTORYPAGE_VERIFYONLEAVE"=""
!define: "MUI_PAGE_CUSTOMFUNCTION_LEAVE"="dirLeave"
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
!insertmacro: MUI_RESERVEFILE_INSTALLOPTIONS
!insertmacro: end of MUI_RESERVEFILE_INSTALLOPTIONS
Name: "UFO:AI 2.3-dev"
OutFile: "ufoai-2.3-dev-win32.exe"
InstallDir: "$PROGRAMFILES\UFOAI-2.3-dev"
InstallRegKey: "HKLM\Software\UFOAI\ufo.exe\"
ShowInstDetails: show
ShowUnInstDetails: show
Function: ".onInit"
!insertmacro: MUI_LANGDLL_DISPLAY
!insertmacro: end of MUI_LANGDLL_DISPLAY
FunctionEnd
Function: ".onInstSuccess"
MessageBox: 0: "If you want to play multiplayer games, open the TCP port 27910 in your firewall."
FunctionEnd
SectionGroup Game ->(SECGROUP01)
Section: "Game Files" ->(SEC01)
SetOverwrite: ifnewer
SetOutPath: "$INSTDIR"
warning: File: "..\..\..\src\docs\tex\*.pdf" -> no files found. (C:\SVN Update\src\ports\windows\installer.nsi:88)
File: "SDL.dll" [compress] 124814/320512 bytes
File: "SDL_mixer.dll" [compress] 92347/312320 bytes
File: "SDL_ttf.dll" [compress] 157693/331776 bytes
File: "iconv.dll" [compress] 469668/892928 bytes
File: "intl.dll" [compress] 16656/45056 bytes
File: "jpeg62.dll" [compress] 62034/153966 bytes
File: "libcurl-4.dll" [compress] 93365/182272 bytes
File: "libogg-0.dll" [compress] 7610/15872 bytes
File: "libpng13.dll" [compress] 80281/203264 bytes
File: "libvorbis-0.dll" [compress] 76817/157696 bytes
File: "libvorbisfile-3.dll" [compress] 13983/28672 bytes
File: "smpeg.dll" [compress] 69969/235520 bytes
File: "zlib1.dll" [compress] 30599/59904 bytes
File: "..\..\..\*.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\SVN Update\src\ports\windows\installer.nsi" on line 90 -- aborting creation process
    It stopped at line nos 90.

    Anyone can help pls?
    Thanks.

[attachment deleted by admin]
« Last Edit: January 09, 2009, 04:24:04 am by odie »

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #8 on: January 09, 2009, 04:56:32 am »
Did you compile from sources the game itself?

odie

  • Guest
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #9 on: January 09, 2009, 06:19:38 am »
Did you compile from sources the game itself?

Hi Kildor, not quite sure what u r referring to as - compile from sources, the game itself.

I reckon u refers to asking - Did i compile the game from the sources download.

If so, Yes, of course. haha. where else would i get the NIS script to download.... hmmmm... pls see the screenshot. Its self-explanatory. Hmmmmm.....

Is there anyone else who is doing self-compilation and can help please?
Thanks.

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #10 on: January 09, 2009, 07:26:20 am »
go and learn what means "compile programm from sources", "get sources from SVN" and "download sources of programm". And what`s difference between.

And both screenshots aren`t self-explanatory at all.

NSIS errors you about missing .exe files in the root. Do you have ufo.exe in root-dir for example?

Offline DuKe2112

  • Squad Leader
  • ****
  • Posts: 102
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #11 on: January 09, 2009, 01:58:14 pm »
Sry, but you wanted a link on how to download the latest version.

Otherwise I can't help you, because I'm using linux, so take a look in the windows forum:
http://ufoai.ninex.info/forum/index.php?board=11.0

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #12 on: January 09, 2009, 02:01:08 pm »
Why would you use the nsis script? That's for building installer packages. You shouldn't use that if you're just trying to compile the source.

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #13 on: January 11, 2009, 01:39:34 am »
BTAxis is right, the NSIS script is the very last step - I'd suggest following the wiki pages.

If you are trying to build the game on Windows, try the pages that talk about setting up the pre-packaged Codeblocks IDE, after downloading from SVN.  After that, you will need to compile all the maps, and building the maps takes the longest.

The NSIS script is for after the game is built - in fact, you can play the compiled game without packaging it via the NSIS script by running ufo.exe once everything is built.

Offline Kenner

  • Rookie
  • ***
  • Posts: 35
    • View Profile
Re: Problems found in Windows 2.3 build (21433) - USB Control vs Keyboard?
« Reply #14 on: January 11, 2009, 02:44:47 am »
BTAxis is right, the NSIS script is the very last step - I'd suggest following the wiki pages.

If you are trying to build the game on Windows, try the pages that talk about setting up the pre-packaged Codeblocks IDE, after downloading from SVN.  After that, you will need to compile all the maps, and building the maps takes the longest.

The NSIS script is for after the game is built - in fact, you can play the compiled game without packaging it via the NSIS script by running ufo.exe once everything is built.

I have to agree with this. The wiki pages are easy to follow. I downloaded from SVN and built the game with Codeblocks for the first time today and it was straightforward. I haven't had any problems at all getting the game compiled and running in Windows.

Ken