Jump to content

aleReimondo

Community Members
  • Posts

    5
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.aleReimondo.com

Profile Information

  • Gender
    Male

aleReimondo's Achievements

Tiro

Tiro (1/14)

0

Reputation

  1. I use normal functions, all normal functions and delegation; and all works w/o any problem on V8, IE, etc (without surprises, nor limitations and also fast). I see that design can impose us limitations to "protect execution success" and can be not safe/possible to run my frameworks here. IMO the safety at expense of "each page/stage a world" is a severe limit for scripting a game. Is there a simple way to load js code when booting top context? (at root) I am asking for a place to patch the engine to load my file into javascript at boot... as it was part of core js impl. thanks for your time, Ale. p.d.: I am too old to stop when someone say "dont´do that". So if it is possible, I will try; if it is not possible (at js level), it is also ok; I can try to run in one page.
  2. Hi! I want to add some custom modifications and extensions to String and other base methods (changes at javascript level). That changes must be visible at any page of the game and while playing the game. Where is the place to add the expression to load my script files ? thanks in advance, Ale. p.d. I have tried to inject scripts in a new page, but when loading another page in the game from main menu, the methods fail execution with error (shown in console) ------------------------------------ ERROR: Javascript error: s8/8AD.js line 436 TypeError: "hello".printMe is not e afunction @s8/8ad.js:436 ERROR: GUI: Error executing script s8/8AD.js: Scripting_LoadFile_EvalErrors ------------------------------------ When I query using console typeof "Hello".printMe it is returned "function" and it is correctly defined.
  3. Any selection of language (syntax and/or semantics) is imposed by economy of resources. Young systems are written in small number of languages, and most of them die before maturing to support diverse forms of expresion. For games the "scripting solution" has emerged to reveal the contrains imposed by components idea(ls). Object Technology is still unused for games in practice, and most game developers do not use the main diference between objects and components; so they don´t want/need more than components... A pluggable scripting engine is a first step to promote multiple languages to dynamically change behabior (and shape). best, Ale.
  4. Thank you for your answers; do you mean that it is better to implement a wraper for scripting interface and replace the scripting (in runtime) by a wrapper that routes calls to v8 or spidermonkey ? Can this change be plugged during startup without modifying the sources of the system? It would be great if a plugin can be installed this way! How to install this "plugin"? (please any lines to guide me here) thanks in advance, Ale.
  5. Hi, I have a system running on top of javascript and V8 engine (the system use V8 features). I would like mount my system inside 0AD to perform some actions while playing the game... How much effort can be to make scripting engine use V8 ? (for a person with medium experience in V8 API, good experience in C++, zero experience in SpiderMonkey API) I have read the sources but didn´t find a thin layer to make me possible to replace the scripting engine (nor plug other scprinting engine(s) ). Any information or guide on how to: 1.- use v8 engine. 2.- bind other scripting engines (diverse lang scripting). will be really appreciated! Ale.
×
×
  • Create New...