Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - HeSh

Pages: [1]
1
Technical forum / Some string problems
« on: July 28, 2005, 06:32:20 PM »
I have a function that parses a string. It searches for a token and then returns the string from the beginning to that token.

basicly it looks like this (token is "@"):
Code: [Select]
function getFirst( input )
{
return input.Substring(1,input.IndexOf("@",1)-1);
}

When i run this function in a loop like this it crashes whole program on second loop pass:
Code: [Select]
function ParseDialogueString(srcString)
{
var first=new String(2024);
var str=new String(srcString);

while (str.Length>1)
{
first = getFirst(str);
str = cutFirst(str);
// BLAH BLAH REST OF THE CODE
}
}
cutFirst cuts the first part of the string (right to the token), the function is almost the same as GetFirst.
These functions assume that srcString always begins and ends with a token (i have checked if wrong token position causes the crash or trying to reach out of bounds of the string but everythin is OK for that matter).

I think there is something about string assignment. How does WME handle "str=str2" command? does it simply copy the whole object (str2 into str) or does it try to fit str2 data into str? I have a feeling it's memmory assignment problem.

2
Technical forum / New WME 1.3 update crash
« on: December 17, 2004, 12:07:49 PM »
I have updated WME to the latest version, and now when i run the project it crashes.
I can not find on which part of the code it crashes but the last thing written in log file is "11:42: Data initialized in 47 ms" and wme_crash.txt looks like this:
Code: [Select]
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module <UNKNOWN> at 001B:73757220
EAX=00E4C8D8  EBX=00000000  ECX=00E1B008  EDX=00E47158  ESI=00E470B0
EDI=00EB9840  EBP=00EB9840  ESP=0012F920  EIP=73757220  FLG=00010202
CS=001B   DS=0023  SS=0023  ES=0023   FS=0038  GS=0000
Stack trace:
001B:73757220 (0x00000001 0x00E470B0 0x00E470B0 0x0042A329) <UNKNOWN>
001B:004298AD (0x003F4198 0x20726F74 0x00EB98B8 0x00000000) wme.exe
001B:003F0101 (0x00427960 0x00429C50 0x45644143 0x7469746E) <UNKNOWN>
001B:0042A5D0 (0x4C718D56 0x04244C89 0x7D741689 0x245C8B53) wme.exe
001B:D03B108B (0x00000000 0x00000000 0x00000000 0x00000000) <UNKNOWN>

I don't know where to start to fix this. So any help would be apprecieted.
It all worked fine in the previous version, so i guess the final solution is to stick to that version.

3
Technical forum / "click" sound after the speech
« on: October 16, 2004, 12:35:56 PM »
I play speech files using actor.Talk() method, and when speech finshes i get a "click" sound.
If i end the speech by interrupting it with mouse click there is no click.

How can I get rid of the annoying "click" sound?  ???

4
Technical forum / Music Fade In/Out
« on: August 25, 2004, 05:29:14 PM »
Hi. I am writing scripts for Music Fade In and Fade Out (only crossfade is supported in WME).

So (for fadeout), i decrease volume and then have Sleep(x);
However sleep suspends script, and i want that Music Fade doesn't effect the rest of the code.

For example. The first thing when you enter one scene is that someone says something. But in the meentime music should fadein.

if I write:
Code: [Select]
Character.Talk("Something");
PlayFadeInMusic(...);
it will start to play after the character finnished talking. and here
Code: [Select]
PlayFadeInMusic(...);
Character.Talk("Something");
he will start talking after the fade in.

Is there a way to avoid this? To, like... start PlayFadeInMusic in seperate thread. :)

Thanx.

BTW.... i'm getting more and more used to working in WME... i must say you have done a great job. Keep up the good work.  ::thumbup ::thumbup ::thumbup
____________________
HeSh....  (O0)

5
Technical forum / Custom objects from dynamic scripts
« on: July 24, 2004, 04:39:14 PM »
I have a custom object that is created from the script like this: var MyObj = new Object("myScript.script");

The problem is that i have a DLL that alters the script("myScript.script"), and second time when the program reaches new Object("myScript.script") it loads the old script. not the new one. I suppose once WME loads the script it keeps it in memory and doesn't ever update. How can I change this? i need to re-create MyObj from the altered "myScript.script".

thanx.

Pages: [1]

Page created in 0.045 seconds with 22 queries.