Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Alternate for room_next(), They won't answer on the ENIGMA Forums
United States
OniLink10
Posted: Aug 12 2008, 08:37 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


EDIT: I solved the Function Error, but I this was returned in the Compile:

Sending Enigma resource names
Sending Enigma resource data
Executing Enigma...
Loaded fnames successfully.
Read 122 constants
Read 33 globals
Reading 1066 bytes of locals...
Read 1066 bytes of locals
Read locals successfully.
Opened file.
File is valid.
Read icon data.
Exported icon.
Read script names.
Read object names.
Read room names.
Read sprite names.
Wrote resource names.
Exported object switch.
Loaded and parsed all scripts.
"Link'd" all scripts.
Retrieved all script variables.
<if>(view_xview<lt>0) view_xview<=>0; <if>(view_xview<gt>room_width-view_wview) view_xview<=>room_width-view_wview; <if>(view_yview<lt>0) view_yview<=>0; <if>(view_yview<gt>room_height-view_hview) view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0; <if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn; <if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0; <if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;

<if>(view_xview<lt>0);view_xview<=>0;<if>(view_xview<gt>room_width-view_wview);view_xview<=>room_width-view_wview;<if>(view_yview<lt>0);view_yview<=>0;<if>(view_yview<gt>room_height-view_hview);view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn;<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;

<if>(view_xview<lt>0);view_xview<=>0;<if>(view_xview<gt>room_width-view_wview);view_xview<=>room_width-view_wview;<if>(view_yview<lt>0);view_yview<=>0;<if>(view_yview<gt>room_height-view_hview);view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn;<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;

<if>(view_xview<lt>0);view_xview<=>0;<if>(view_xview<gt>room_width-view_wview);view_xview<=>room_width-view_wview;<if>(view_yview<lt>0);view_yview<=>0;<if>(view_yview<gt>room_height-view_hview);view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn;<if>(nnnnnnnnnn<lt>0);nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn);nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;

<if>(view_xview<lt>0) view_xview<=>0;<if>(view_xview<gt>room_width-view_wview) view_xview<=>room_width-view_wview;<if>(view_yview<lt>0) view_yview<=>0;<if>(view_yview<gt>room_height-view_hview) view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn;<if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;

<if>(view_xview<lt>0) view_xview<=>0;<if>(view_xview<gt>room_width-view_wview) view_xview<=>room_width-view_wview;<if>(view_yview<lt>0) view_yview<=>0;<if>(view_yview<gt>room_height-view_hview) view_yview<=>room_height-view_hview;
<if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnn-nnnnnnnnnn;<if>(nnnnnnnnnn<lt>0) nnnnnnnnnn<=>0;<if>(nnnnnnnnnn<gt>nnnnnnnnnnn-nnnnnnnnnn) nnnnnnnnnn<=>nnnnnnnnnnn-nnnnnnnnnn;



view_xview<-=>2;
nnnnnnnnnn<-=>0;

view_xview<-=>2;
nnnnnnnnnn<-=>0;

view_xview<-=>2;
nnnnnnnnnn<-=>0;

view_xview<-=>2;
nnnnnnnnnn<-=>0;

view_xview<-=>2;
nnnnnnnnnn<-=>0;

view_xview<-=>2;
nnnnnnnnnn<-=>0;



view_yview<-=>2;
nnnnnnnnnn<-=>0;

view_yview<-=>2;
nnnnnnnnnn<-=>0;

view_yview<-=>2;
nnnnnnnnnn<-=>0;

view_yview<-=>2;
nnnnnnnnnn<-=>0;

view_yview<-=>2;
nnnnnnnnnn<-=>0;

view_yview<-=>2;
nnnnnnnnnn<-=>0;



view_xview<+=>2;
nnnnnnnnnn<+=>0;

view_xview<+=>2;
nnnnnnnnnn<+=>0;

view_xview<+=>2;
nnnnnnnnnn<+=>0;

view_xview<+=>2;
nnnnnnnnnn<+=>0;

view_xview<+=>2;
nnnnnnnnnn<+=>0;

view_xview<+=>2;
nnnnnnnnnn<+=>0;



view_yview<+=>2;
nnnnnnnnnn<+=>0;

view_yview<+=>2;
nnnnnnnnnn<+=>0;

view_yview<+=>2;
nnnnnnnnnn<+=>0;

view_yview<+=>2;
nnnnnnnnnn<+=>0;

view_yview<+=>2;
nnnnnnnnnn<+=>0;

view_yview<+=>2;
nnnnnnnnnn<+=>0;



room<+=>1; <if>(room<gt>4) { room<=>1; }
nnnn<+=>0; <if>(nnnn<gt>0) { nnnn<=>0; }

room<+=>1;<if>(room<gt>4);{room<=>1;}
nnnn<+=>0;<if>(nnnn<gt>0);{nnnn<=>0;}

room<+=>1;<if>(room<gt>4);{room<=>1;}
nnnn<+=>0;<if>(nnnn<gt>0);{nnnn<=>0;}

room<+=>1;<if>(room<gt>4);{room<=>1;}
nnnn<+=>0;<if>(nnnn<gt>0);{nnnn<=>0;}

room<+=>1;<if>(room<gt>4) {room<=>1;}
nnnn<+=>0;<if>(nnnn<gt>0) {nnnn<=>0;}

room<+=>1;<if>(room<gt>4) {room<=>1;}
nnnn<+=>0;<if>(nnnn<gt>0) {nnnn<=>0;}



Loaded and parsed all events.
Read room data.
Wrote event declarations.
Wrote event code.
Wrote inherited locals.
Wrote with and script code.
Wrote mode data.
Wrote room data.
Starting compile. This may take a minute.
In file included from ENIGMAsystem\SHELL\SHELLmain.cpp:105:
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function `virtual enigma::variant enigma::OBJ_object3::myevent_step()':
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:8: error: incompatible types in assignment of `int' to `double[9]'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:9: error: invalid operands of types `double' and `double[9]' to binary `operator-'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:10: error: invalid operands of types `double' and `double[9]' to binary `operator-'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:12: error: incompatible types in assignment of `int' to `double[9]'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:13: error: invalid operands of types `double' and `double[9]' to binary `operator-'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:14: error: invalid operands of types `double' and `double[9]' to binary `operator-'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function `enigma::variant enigma::OBJ_object3::myevent_keyboard37()':
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:22: error: incompatible types in assignment of `int' to `double[9]'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function `enigma::variant enigma::OBJ_object3::myevent_keyboard38()':
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:30: error: incompatible types in assignment of `int' to `double[9]'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function `enigma::variant enigma::OBJ_object3::myevent_keyboard39()':
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:38: error: incompatible types in assignment of `int' to `double[9]'
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function `enigma::variant enigma::OBJ_object3::myevent_keyboard40()':
ENIGMAsystem\SHELL\/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:46: error: incompatible types in assignment of `int' to `double[9]'
Compile failed. [1]
G++ error. Compile failed (-6)

This post has been edited by OniLink10 on Aug 12 2008, 09:24 PM


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Greece
rogueyoshi
Posted: Aug 14 2008, 09:30 AM
Quote Post


Watch out for that zoo
[*]

Group Icon
Group: Members
Posts: 346
Member No.: 3742
Joined: 8-May 07

Status: (0d) [--]


this is a really really really simple feature to add.

CODE
//scrRoomNext(CurrentRoom)
switch(argument0)
{
   case Room1Index:
       return Room2Index;
   case Room2Index:
       return Room3Index;
   case Room3Index:
       return Room4Index;
   case ...
       return ...
   default:
       return -1;
}

replace those generic variables with the names of your rooms and you're all set.

This post has been edited by rogueyoshi on Aug 14 2008, 09:30 AM


--------------------
#SNKPlaymore @ EFnet
Don't have a clue how to play KOF? Want one? http://tinyurl.com/kofguide
Tell SNK their netcode sucks ASS!! http://tinyurl.com/snkonline

user posted image
PMAOLYahooMSN
Top
United States
OniLink10
Posted: Aug 14 2008, 07:43 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (rogueyoshi @ Aug 14 2008, 07:30 AM)
this is a really really really simple feature to add.

CODE
//scrRoomNext(CurrentRoom)
switch(argument0)
{
   case Room1Index:
       return Room2Index;
   case Room2Index:
       return Room3Index;
   case Room3Index:
       return Room4Index;
   case ...
       return ...
   default:
       return -1;
}

replace those generic variables with the names of your rooms and you're all set.

Thank you SOO much RogueYoshi!


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0587 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.27 ]