Register | Login
Forum Index > Requests and Feedback > ZirToken
Author Message
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[514] - posted: 2011-11-09 18:47:58
They are kept in a special identifier tree, it would not be possible to make them directly accessible. Is there something specific you need to do with them?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[515] - posted: 2011-11-09 18:53:51

At the moment , no , may be later ,thanks.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[516] - posted: 2011-11-09 18:56:46
hmm actually there is a problem, that would make things very complex.....

i think there will not be any local variable event, since it would make it more complex for used upper variables, i think maybe....

onVariable
onBaseExpression
onRegister

BaseExpression will cover local variables, register ptrs and many other things such as

Code:
[ecx+edx+5] = ....


i will think about this a bit more

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[517] - posted: 2011-11-09 19:07:12

ok ,

does plugin allow to put more than one event function in one plugin ?

because ; i got access violation when compile test program , i added this to my basic plugin
Code:
function event_Let() {
  uses edi;
  char buf[2048];
  char line[2048];
  char val[255];
  Dword Len;
  boolean ParesFlg = true;  
  len = Ziron_ExtractLine(@line, 2048);
  // remove 'let' form line
  Eax = @line
  while(char[eax] != 0) 
   {
      cl = char[Eax+3]
      char[Eax]= cl
   }
  if(ParesFlg)
   { 
      Ziron_ShowMessage(@line);                // show our entire line for debug purpose
      Ziron_GetNextToken();  
      return true;
   }
  else
   {   
      return false;                           // let Ziron handle the line  
   }   

}

function InitPlugin(pointer pGetF) {
  Ziron_LoadAll(pGetF); //use framework utility function to load all

  //add some variable type
  const MyType = 'type Integer = Int32; type String = char; type Uchar = char; type Schar = sbyte; type USHORT = word;';
    Ziron_Execute(@MyType,H_strlen(@MyType));
  
  //register our keyword
  Ziron_RegisterKeyword('Dim', @event_Dim);
  Ziron_RegisterKeyword('Let', @event_Let);
  
  return strLoaded;
}


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[518] - posted: 2011-11-09 19:19:39
yes it should have no problems with as many as you like try an empty let event to see if it has error

Code:
function event_Let() {
   eax = false;
}


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[519] - posted: 2011-11-09 19:21:50
i think this is a problem >

Code:
  while(char[eax] != 0) 
   {
      cl = char[Eax+3]
      char[Eax]= cl
   }


because eax may not be nil, but + 3 may be beyond the end of the line.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[520] - posted: 2011-11-09 19:22:51

no error with empty function , so which part of the above code that cause access violation?

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[521] - posted: 2011-11-09 19:23:25
ps. if you want to remove let, you could just fold the string

Code:
strFold(@buf, 4);


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 12 user(s) online. 0 member(s) and 12 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd