• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Neuntoter

AngelScript MingW-64

5 posts in this topic

I must be missing something or is it just that AngelScript is not compatible with MingW-64.

 

I am using CodeBlocks with TDM-GCC MingW-64 on Windows 7 64bit

This is the same on both newest dev and release of AngelScript.

angelscript_2.25.2 and angelscript-trunk

The disassembly is from trunk if it matters.

 

I get SegFault on context Execute()

I am testing using the Console sample but tried tutorial sample with segfault also.

scripthelper.cpp
int ExecuteString(asIScriptEngine *engine, const char *code, asIScriptModule *mod, asIScriptContext *ctx)
Line 154
r = execCtx->Execute();

Feature Test passed all except

Failed on line 178 in test_addon_debugger.cpp

 

Creating Static Library using the the CodeBlocks project however I changed the defines because 64bit compilation fails with i386 option with Error: invalid instruction suffix for `push' ...etc

 

 

Currently Using these defines but I have tried many different combinations with no change. Without AS_X64_GCC the featuretest SegFaults after the first 2 lines.

ANGELSCRIPT_EXPORT
WIN32
AS_X64_GCC

 

Disassembly

0x004049BC    callq  *%rax
0x004049BE    mov    0x74(%rbp),%edx
0x004049C1    mov    %edx,0x3c(%rbp)
0x004049C4    jmp    0x404a25 <ExecuteString(asIScriptEngine*, char const*, asIScriptModule*, asIScriptContext*)+733>
0x004049C6    mov    0x68(%rbp),%rax              <---------
0x004049CA    mov    (%rax),%rax
0x004049CD    add    $0x28,%rax
0x004049D1    mov    (%rax),%rax
0x004049D4    mov    0x68(%rbp),%rdx
0x004049D8    movl   $0x2,-0x28(%rbp)
Edited by Neuntoter
0

Share this post


Link to post
Share on other sites

As an update I have tried it with everything from no additional defines to manually adding defines to make sure it should be compiled with MINGW-64 options.

Still doesn't work. At this point I have to believe that the issue is an incompatibility between the compiler and and angelscript and not an issue of defines.

 

Also though I never mentioned it, it works properly built as 32bit.

Edited by Neuntoter
0

Share this post


Link to post
Share on other sites

Which version of MinGW are you using? 

 

With version 4.7 they changed the native calling conventions considerably. I've already made the 32bit version working for both the new and old calling convention, but the 64bit version probably needs adjustment. Actually, I'm not too sure the 64bit ever worked, as I never tested it myself due to lack of environment.

 

I do have a I'll investigate this as soon as possible.

0

Share this post


Link to post
Share on other sites

This is 4.7.1

I was hoping it was simply not compatible and I wasn't missing something obvious.

 

I can help you out with testing some.

I would be interested to get it working.

 

I am pretty sure it worked in 64bit on mingw in the past.

0

Share this post


Link to post
Share on other sites

MinGW 4.7 probably changed the 64bit version to be more closely matching to MSVC ABI, at least this was what they did with the 32bit version. If MinGW 64bit worked with as_callfunc_x64_mingw.cpp before, it probably needs to be updated to be more like as_callfunc_x64_msvc.cpp and as_callfunc_x64_msvc_asm.asm now.

 

I'm quite busy now. I have a lot to catch up after my vacation, so if you could do this investigation on your own for now it would be good. Otherwise I'll probably have to keep my investigation on this on hold for a couple of weeks.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0