• 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.

Archived

This topic is now archived and is closed to further replies.

WitchLord

AngelScript 1.7.1 beta 3a released

3 posts in this topic

I've released the first beta of version 1.7.1. The change log for this version is:
  • bstr has become an internally registered type
  • bstr.length() is now a method instead of a property
  • Removed the byte code STRMKE
  • RegisterObjectType() now accepts the flags asCALL_RETURNBYVAL and asCALL_RETURNBYREF
  • bug fix: Prepare() should no longer crash when receiving invalid function id (thanks Xavier "meink")
  • The unexpected token message now shows what token was found
  • It is now possible to use function overloads for scripted functions as well
  • GetFunctionIDByName() returns asMULTIPLE_FUNCTIONS if more than one function with the same name exists
  • GetFunctionIDByDecl() is now supported
  • bug fix: The -> operator now works with direct pointers as well as pointer references (thanks Andrew "Desdemona" Wright)
There is one thing that has to be changed to successfully upgrade the library: All the scripts that use the length property on the bstr type must be changed to use the length() method instead. Just add the parenthesis. This was an unfortunate necessity, because the length property was actual improperly designed and required special code in the compiler. Now the bstr type is treated by the compiler just like any other registered object type. The engine registers the type internally. There are also a couple of recommended changes to take advantage of the new improvements: 1) RegisterObjectType() now supports the flags asCALL_RETURNBYREF and asCALL_RETURNBYVAL. If you are already using these flags when registering functions, you can now move them to the RegisterObjectType() call instead making your code easier to manage. 2) It is recommended to use GetFunctionIDByDecl() instead of GetFunctionIDByName() as it will automatically verify that the function declaration is correct. This will also allow you to use function overloading for the script functions. The next release will include support for ExecuteStep(asEXEC_STEP_OVER). This should also be the last new feature for this version. Regards, Andreas Jönsson Author of AngelScript __________________________________________________________ www.AngelCode.com - game development and more... AngelScript - free scripting library - Tower - free puzzle game [edited by - WitchLord on May 18, 2004 9:17:53 PM] [edited by - WitchLord on May 22, 2004 1:00:26 PM] [edited by - WitchLord on May 25, 2004 9:39:28 PM]
0

Share this post


Link to post
Share on other sites
The second beta is now available. It only brings a few bug fixes.

  • bug fix: multiple variables per global declaration statement now works again (thanks Lennart Denninger)
  • bug fix: scripts with errors in global variables could crash the application if no output stream was specified (thanks Fredrik Ehnbom)
  • bug fix: calling ExecuteString() without first building a script didn''t work (thanks Fredrik Ehnbom)



__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game
0

Share this post


Link to post
Share on other sites
The third and probably last beta version is complete. Changes for this version is the following:

  • ExecuteStep(asEXEC_STEP_OVER) is now supported
  • Added support for the indexing operator
  • The asBEHAVE_INDEX flag is used to register the overloaded indexing operator
  • bstr[int] returns a reference to the indexed byte
  • The library is now working on the Dreamcast (thanks Fredrik Ehnbom)


The Dreamcast port required some changes to the code since the target processor is different. One of the changes is that all data words must be aligned, a 2 byte word on a 2 byte alignment, a 4 byte word on a 4 byte alignment. This required us (Fredrik and me) to develop some way of assuring that all byte codes followed this requirement and I''m happy to say that we succeeded in making a beatiful solution that works for both x86 and SH4. This might also make it easier to port the library to other systems.

Another difference is that the Dreamcast passes many of the function parameters in special registers instead of on the stack. To make it worse, integer values should be passed in integer registers and floating point values in float registers. Fredrik came up with the solution for it, although the way it is implemented at the moment limits the number of parameters that can be passed to 32 (on the Dreamcast). This limit can probably be removed at the cost of some speed.

The support for the indexing operator allows you to write special array objects. AngelScript still doesn''t support generic arrays, declared in the script but at least now it is possible to work with arrays where that is wanted.

Version 1.7.1 is now feature complete. The final version will be released together with a restructuring of the AngelScript site. Hopefully in a few days.

After that I''ll start working on version 1.8.0 that will bring support for modular scripts.

Regards,
Andreas Jönsson
Author of AngelScript

__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game
0

Share this post


Link to post
Share on other sites
Fixed a serious bug related to function overloading. The compiler didn''t check if a function had more parameters than was used by the script thus the compiler at times thought it had found a matching function where it really hadn''t.

Thanks to Lennart Denninger and Desdemona for reporting this bug.

__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game
0

Share this post


Link to post
Share on other sites