I amm sorry, but the game open fine, showing creditz and all in 2.72..
I am puzzled, probably something trivial then...?
I am puzzled, probably something trivial then...?
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.
Show posts Menu
room0.asc(35): Error (line 35): Type mismatch: cannot convert 'const string' to 'string'
string TempString;
function addCreditLine(string Text) {
SetCredit(currentID,Text,colour,font,centered,xpos,generateoutline);
currentID = currentID+1;
}
function addSpecialCreditLine(int image) {
currentID = currentID+1;
//SetCreditImage(int ID, int Slot, int center, int xpos, int pixtonext);
SetCreditImage(currentID,image,1,1,1);
}
function addCreditSpace() {
currentID= currentID + 1;
}
#sectionstart room_a // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
// script for room: First time player enters screen
SetEmptyLineHeight(20);
addCreditLine("Werknaam SpaceSpy"); // HERE IS THE ERRORR REPORTED
string TempString;
function addCreditLine(string Text) {
SetCredit(currentID,Text,colour,font,centered,xpos,generateoutline);
currentID = currentID+1;
}
function addSpecialCreditLine(int image) {
currentID = currentID+1;
//SetCreditImage(int ID, int Slot, int center, int xpos, int pixtonext);
SetCreditImage(currentID,image,1,1,1);
}
function addCreditSpace() {
currentID= currentID + 1;
}
#sectionstart room_a // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
// script for room: First time player enters screen
SetEmptyLineHeight(20);
TempString ="Werknaam SpaceSpy";
addCreditLine(TempString);
addCreditSpace();
TempString = "Story: Timo, Bram, Bram, martijn en Vera";
SetCredit(currentID,Text,colour,font,centered,xpos,generateoutline);
//first set the max movement for full Piston Current
int A_DX = -70; // means 70 pixels for full movement outward of the disk at max current
float Zero = IntToFloat(0);
float A_dx = Zero; // because I need much more parameters to be set to Zero later on
//now calculate the actual movement in x direction:
A_dx = IntToFloat(A_DX) * (IntToFloat(I_PistonA) / IntToFloat(MaxPistonCurrent) );
// and finally move
object[2].SetPosition(36 + FloatToInt(A_dx), 113 );
#define NUMCONNECTIONS 8
function MAX_WIRES(){
int i;
int maxwires_loc=1;
while (i<NUMCONNECTIONS ){
maxwires_loc = maxwires_loc + i;
return maxwires_loc;
}
}
//NumCurrent = MAX_WIRES() - NUMCONNECTIONS + 1;
// Declare an array variable of type Connection
Connection Connections[MAX_WIRES()];
int current[NumCurrent];
Quote from: Gilbot V7000a on Sun 13/01/2008 14:24:23
As I mentioned in my first post, it's V2.72.
How did you open it?
function DrawWires() {
int i; // Erase the wires first
RawRestoreScreen(); /
// Draw the wires
i=0;
while (i<MAX_WIRES) {
if (wire.active) {
RawSetColor(wire.xcolor);
RawDrawLine(wire.from_x, wire.from_y, wire.to_x, wire.to_y);
}
i++;
}
}
I12*Conn12.R + I23*Conn23.R - I13*Conn31.R = 0
I12*Conn12.R + I24*Conn24.R - I14*Conn41.R = 0
I12*Conn12.R + I25*Conn25.R - I15*Conn51.R = 0
(minus signs are because agreement made is to define all currents flowing from 'low' Conn to a 'high' Conn as positive; since these are flowing the other way around, they get the minus sign)
In matrix notation (I use the soleLinearEquation.dll), I can set this up, with 7 columns for:
I12 I13 I14 I15 I23 I24 I25
(C12.R -C13.R C23 )(I12) = 0
(C12.R -C14.R C24.R )(I13) = 0
(C12.R -C15.R C25.R )(I14) = 0
( etc etc etc )(I15) = 0
( etc etc etc )(I23) = 0
( etc etc etc )(I24) = 0
( etc etc etc )(I25) = Emf
(example covers only the first three euqations!!)
CreateMatrix(NumCols);
SetMatrixValue(1, 1, Conn12.R );
SetMatrixValue(1, 2, -1 * Conn13.R);
SetMatrixValue(1, 3, 0);
SetMatrixValue(1, 4, 0 );
SetMatrixValue(1, 5, Conn23.R);
SetMatrixValue(1, 6, 0);
SetMatrixValue(1, 7, 0);
SetMatrixValue(2, 1, Conn12.R );
SetMatrixValue(2, 2, 0);
SetMatrixValue(2, 3, -1 * Conn14.R);
SetMatrixValue(2, 4, 0 );
SetMatrixValue(2, 5, 0);
SetMatrixValue(2, 6, Conn24.R);
SetMatrixValue(2, 7, 0);
SetMatrixValue(3, 1, Conn12.R );
SetMatrixValue(3, 2, 0);
SetMatrixValue(3, 3, 0);
SetMatrixValue(3, 4, -Conn15.R );
SetMatrixValue(3, 5, 0);
SetMatrixValue(3, 6, 0);
SetMatrixValue(3, 7, Conn25.R);
SetVectorValue(1, 0);
SetVectorValue(2, 0);
SetVectorValue(3, 0);
Solve(); //solveLineaiequation Command
//IN THIS EXAMPLE ARE TOO LITTLE EQUATION TO BE ABLE TO SOLVE THE SET.
//IT IS ONLY AN EXAMPLE OF THE SYNTAX
//save the results in an array
current[0] = GetValue(1); //I12
current[1] = GetValue(2); //I13
current[2] = GetValue(3); //I14
current[3] = GetValue(4); //I15
current[4] = GetValue(5); //I23
current[5] = GetValue(6); //I24
current[6] = GetValue(7); //I15
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.046 seconds with 18 queries.